Re: Initial window placement



> Hi,
>
> So how about something like this in a spec update:
>
> _NET_WM_FRAME_GEOMETRY, x, y, width, height, CARDINAL[4]/32
>
> If this property is set on a window the window manager SHOULD place the
> frame at the indicated root window coordinates and size the frame to the
> indicated size. The client window in this case will be shrunk to fit the
> decoration. If the minwidth/height and/or maxwidth/height in the
> WM_NORMAL_HINTS are specified and do not allow the frame geometry to be
> met including decorations, then the frame geometry will be adjusted
> according to the win_gravity field of WM_NORMAL_HINTS. The window manager
> SHOULD update this property on the window if it was set at the time the
> window was mapped first.

I see wto problem with that approach is:

1) Window is likely to get its decorations finalized only after some time
after its initial mapping. For example many applications set its title
to be blank initially, and then change it to something usefull right away.
AS the result, window manager may decorate window in some generic way at
first, and then when title changes, it may recall some presaved settings,
specific for that title, and redecorate the window. As the result, window
will be placed in requested position at first, and then slightly moved,
thus defying the purpose.

2) If window has been placed according to that property, does window
manager has to keep this placement  during the entire lifetime of the
window? How should subsequent requests for move/resize be treated?
How should changes in theme/look that affect size of the frame decorations
be treated? How should changes in window gravity be treated ?

As per (1) if you don't force that placement to entire lifetime of the
window, you will not get anything usefull, but if you do so - you run
into huge pile of other challenges described in (2).


Cheers
Sasha

>
> Regards, Philipp
>
> >>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<
>
> Am 13.08.01, 19:41:52, schrieb Philipp Lohmann <Philipp Lohmann sun com>
> zum Thema Re: Initial window placement:
>
>
> > > That's not how it works. The size in the configure request is the
size
> > > of the client window, not the size of the frame around the client
> > > window. There is no way for clients to request a specific size for
the
> > > frame. (Which is makes Java/AWT window size functions impossible to
> > > implement correctly in X - a screwup in the AWT design.)
>
> > > Havoc
>






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]