dwm-meillo

diff client.c @ 229:f4f5d000ce7a

implemented NET_ACTIVE_WINDOW support
author Anselm R.Garbe <arg@10ksloc.org>
date Tue, 08 Aug 2006 17:08:45 +0200
parents f5b952e566da
children b92bbc2487c9
line diff
     1.1 --- a/client.c	Tue Aug 08 12:58:05 2006 +0200
     1.2 +++ b/client.c	Tue Aug 08 17:08:45 2006 +0200
     1.3 @@ -58,6 +58,8 @@
     1.4  	drawtitle(c);
     1.5  	XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
     1.6  	XSync(dpy, False);
     1.7 +	XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
     1.8 +			PropModeReplace, (unsigned char *)&c->win, 1);
     1.9  	while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
    1.10  }
    1.11  
    1.12 @@ -459,6 +461,9 @@
    1.13  	arrange(NULL);
    1.14  	if(sel)
    1.15  		focus(sel);
    1.16 +	else
    1.17 +		XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
    1.18 +				PropModeReplace, (unsigned char *)NULL, 1);
    1.19  }
    1.20  
    1.21  void