<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
&nbsp;07.11.2009 14:44,&nbsp;&nbsp; Nicola Mfb :
<blockquote
 cite="mid:359c5480911070544l1d6256f1xc006be204eb5f2d5@mail.gmail.com"
 type="cite">
  <pre wrap="">On Sat, Nov 7, 2009 at 1:55 PM, Carsten Haitzler <a class="moz-txt-link-rfc2396E" href="mailto:raster@rasterman.com">&lt;raster@rasterman.com&gt;</a> wrote:
[...]
  </pre>
  <blockquote type="cite">
    <pre wrap="">yes. see above. apps are doing it all the time. it's about the most standard
way to provide information about your window, from title to minimum and maximum
size to aspect ratios and more. rotation preferences are just yet more
properties like this. if its a "property" of the window - put it as a property
of the window. use the mechanism created for precisely this kind of thing. dbus
is not that mechanism.
    </pre>
  </blockquote>
  <pre wrap=""><!---->[...]
  </pre>
  <blockquote type="cite">
    <pre wrap="">if an app has rotation preferences, it should set them. if it has none - it
gets whatever the screen has right now - or whatever the wm chooses to
implement as policy. yes - you modify apps to have them indicate their
preferences. otherwise they are deemed to "not care" which is the case now, for
example. you modify the apps - thats the right way to do it. you don't
post-mortem find a way to hack things in. :)

    </pre>
    <blockquote type="cite">
      <pre wrap="">Also do you know if there's already a well-known window property for
preferred rotation, or would we be inventing a new one?
      </pre>
    </blockquote>
    <pre wrap="">you'd be inventing it.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
i don't think so, see below<br>
<blockquote
 cite="mid:359c5480911070544l1d6256f1xc006be204eb5f2d5@mail.gmail.com"
 type="cite">
  <pre wrap="">I agree that window properties is the right way to implement that, but
we need a way to get rotation preferences now, while that may be
proposed and discussed as a standard for the future.

So a couple of questions:

* is it possible/safe/correct to set a window properties of a
window/xclient by an external app (e.g. a launcher)?
  </pre>
</blockquote>
in my oppinion, it is not necessary, because one has all needed
information already in <br>
--&gt; man XSizeHints<br>
if a window says, for exampe 800x600, and says maybe in the aspect
ratios 4:3, the rotation preference is quite clear, i think.<br>
<br>
the only thing, i think, we need, is a little patch in the
window-manager.<br>
i don't say it is easy, but this is the only right place.<br>
<br>
<blockquote
 cite="mid:359c5480911070544l1d6256f1xc006be204eb5f2d5@mail.gmail.com"
 type="cite">
  <pre wrap="">
In every case and going a bit ot, is anyway possibile having a generic
Window ID to retrieve the .desktop file originating the owning app?
I'm just guessing to retrieve the pid from window properties, retrieve
the executable (like /proc/pid/exe) and back search in the .desktop
file definitions.
But this seems weight as the Exec in .desktop files may be a relative
path, a link etc, for sure there is a better way, may you explain
them?

  </pre>
</blockquote>
these things are workarrounds for not having to patch the window
manager, i think.<br>
<br>
</body>
</html>