Re: Still need a hint for undecorated windows



On Thursday 04 of August 2005 22:52, Adam Jackson wrote:
> On Thursday 04 August 2005 10:18, Havoc Pennington wrote:
> > My take on this app from your description is that "just turn off
> > decorations" doesn't really work well enough if it were a mainstream app
> > (stacking, pager/tasklist, moving, etc. have little unpolished bits and
> > oddities). But, my experience with people that use GL development tools
> > is that they're probably OK with that, since most of the apps like Maya
> > are sort of highly nonstandard UI-wise, and people have old Tk apps and
> > stuff like that mixed in also.
> >
> > This is maybe a good example of the hack being good enough. Though there
> > is a feature I've thought about for drawers and for xmms's "stuck
> > together windows" which is to be able to attach one window to another
> > one. This could apply to your app also if we implemented it.
>
> Hints for reposition snapping and grouping would definitely be a good idea.
> XMMS currently does really stupid things when both it and the WM attempt to
> snap position on move.  For snap, I'm thinking something like a protocol
> advertisement and distance hints on the root window, and then a per-window
> hint for SELF_SNAPPED; either that or if there were a WM_WILL_SNAP property
> on the root window XMMS would disable snapping itself.

 How about not complicating this and simply using _NET_WM_MOVERESIZE from the 
app and letting the WM take care of this? And this WM_WILL_SNAP if feel 
bothered enough to handle it for WMs that can't.

>
> For grouping, the app picks a group master window and all the slaves do
> GROUP_RELATIVE and then the XID of the master.  Actually that just covers
> reposition, you'd also want gravity hints in that list for resize.  Windows
> with a GROUP_RELATIVE hint set would, when the master moves or resizes, get
> positioned by the WM instead of the app.  Hrm, and for resize you'd want a
> hint for either proportional or constant-offsets (OSX drawers would be the
> latter, I think).

 There actually already is grouping, the group hint in WM_HINTS. It's just 
that pretty much everybody sets it in some weird way.

-- 
Lubos Lunak
KDE developer
---------------------------------------------------------------------
SuSE CR, s.r.o.  e-mail: l lunak suse cz , l lunak kde org
Drahobejlova 27  tel: +420 2 9654 2373
190 00 Praha 9   fax: +420 2 9654 2374
Czech Republic   http://www.suse.cz/



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