Re: [dev] xid of a current window

From: Andreas Amann <>
Date: Sun, 25 Mar 2012 15:56:57 +0200

On Sun, Mar 25, 2012 at 04:33:23PM +0300, Ivan Kanakarakis wrote:
> A quick look into the tip of dwm, shows that it is the case for dwm.
> It doesn't set the _NET_ACTIVE_WINDOW property correctly,
> although the atom is there, and included in _NET_SUPPORTED.
> To fix that, one must call (supposing c is
> the Client that holds the current window) :
> XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW,
> 32, PropModeReplace, (unsigned char*)&c->window, 1);
> everytime the current window changes.
> also one should delete the property if there is no active window
> (either no window on the screen, or no window focused)

Attached is a patch which does that. It works for me.

If you want support for NetActiveWindow, you probably also want support
for NetClientList. The second patch implements that.


Received on Sun Mar 25 2012 - 15:56:57 CEST

This archive was generated by hypermail 2.3.0 : Sun Mar 25 2012 - 16:00:07 CEST