Receiving "PropertyNotify" events for the root window.

Yaron Cohen-Tal yaronct at gmail.com
Fri May 15 04:25:00 PDT 2015


Great, thanx!

On Fri, May 15, 2015 at 1:38 PM, Carsten Haitzler <raster at rasterman.com>
wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20150515/5d311c22/attachment-0001.html>


More information about the xorg-devel mailing list