From: Tilman S. <ti...@co...> - 2004-08-23 10:48:51
|
Carsten Haitzler <ra...@ra...> [2004-08-23 10:43]: > > the subject sucks, couldn't think of anything better, sorry :) > > > > AFAIK, Ecore X users should *not* need to know the value of > > DefaulRootWindow(...), since all the window handling functions provide > > the "root window fallback" (if the passed window is zero, use the root > > window instead). > > > > Now basically, this works nicely, but there's a problem with the event > > structures. Imagine an Ecore_X_Event_Mouse_Button_Down event occurs on > > the root window: > > > > The window variable in the event structure will contain the *real* value > > of the default root window, not zero. > > > > So if I want to check for events on the root window, I still need to > > know the value of DefaultRootWindow(...), I cannot just check for zero. > > > > Should this issue be addressed? > > > > I'd just check whether event.window equals our root window, if the check > > succeeds, replace it with zero. > > > > Comments? :) > > here's the problem. you DO need to know root window values as in multihead (NOT > xinerama) you have multiple root windows. sure - there's a default root, but you > need to know all. :) Mmmmh yeah, okay. IMHO this makes the default root fallback kinda useless, though ;) -- Regards, Tilman |