Re: _NET_WM_PING



On Wednesday 21 of May 2003 20:39, Lubos Lunak wrote:
> On Wednesday 21 of May 2003 18:34, Lubos Lunak wrote:
> > On Tuesday 20 of May 2003 14:00, Matthias Clasen wrote:
> > > >  Hello,
>
> [snip]
>
> > > It is unfortunate that the EWMH demands to change the window field in
> > > the event, since that
> > > is entirely unnecessary. The destination window to which the event is
> > > sent is a separate XSendEvent parameter. So the most elegant solution
> > > would be to say that the app should send the ping unmodified to the
> > > root window. That would be a theoretically incompatible change, but I
> > > doubt that wms currently do anything with the window field in received
> > > pings (since it must always be root). We would have to add some advice
> > > how wms should deal with pings from old clients which have the window
> > > == root.
> >
> >  How about the attached changes?
>
>  Bah, wrong, forget it. If the app selects for StructureNotifyMask on the
> root window, it gets the same event back, and has no way to find out
> whether it's from the WM or from itself -> infinite loop.
>
>  The window will have to be remembered somewhere else in the event.
> Attached is attempt #2.

 Since that change is quite simple, unless somebody says something soon, I'll 
commit it.

-- 
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]