Receiving "PropertyNotify" events for the root window.
Carsten Haitzler (The Rasterman)
raster at rasterman.com
Fri May 15 03:38:39 PDT 2015
On Fri, 15 May 2015 13:19:44 +0300 Yaron Cohen-Tal <yaronct at gmail.com> said:
> Hi,
>
> I'd like to be notified about "PropertyNotify" events of the root window,
> for example to be notified when its "_NET_CURRENT_DESKTOP" property is
> changed. As I didn't create the root window, I don't know how to be
> notified of events related to it, of if it's at all possible.
XSelectInput(disp, window_id, PropertyChangeMask);
(and OR (|) to the propertychangemask whatever other events you want to listen
to. window_id would be the root window id. disp is your Display * handle.
> Thanx,
> Yaron.
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) raster at rasterman.com
More information about the xorg-devel
mailing list