Re: XSelectInput in applets



On Mon, Dec 16, 2002 at 11:56:41PM +0000, Sergey V. Oudaltsov wrote: 
> 1. All the applets (correct me if I am wrong) share the same X window
> and single X event cycle - with same event mask.

Each applet should have its own window. But yes the X event queue is
shared.

> 2. There are applets which install own event masks (like Pager and my
> GSwitchIt) on startup.

Pager is installing a mask on the root window, not the applet's window.

> So, the question is: should gnome-panel offer some API to
> register/unregister required input masks - and call XSelectInput
> according to the really necessary event mask bits?

It may make sense to have some sort of "reference count" for each bit
set in the root window mask. But I'm not sure if that should be in
GDK, gnome-panel, or bonobo.

Havoc



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