# HG changeset patch # User Anselm R.Garbe # Date 1155053538 -7200 # Node ID b92bbc2487c94299992c0fc35cc8a7ab457c6b32 # Parent f4f5d000ce7a5fb815002cc61552884db9edf1d6 removed NET_ACTIVE_WINDOW handling diff -r f4f5d000ce7a -r b92bbc2487c9 client.c --- a/client.c Tue Aug 08 17:08:45 2006 +0200 +++ b/client.c Tue Aug 08 18:12:18 2006 +0200 @@ -58,8 +58,6 @@ drawtitle(c); XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); XSync(dpy, False); - XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, - PropModeReplace, (unsigned char *)&c->win, 1); while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); } @@ -461,9 +459,6 @@ arrange(NULL); if(sel) focus(sel); - else - XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, - PropModeReplace, (unsigned char *)NULL, 1); } void diff -r f4f5d000ce7a -r b92bbc2487c9 dwm.h --- a/dwm.h Tue Aug 08 17:08:45 2006 +0200 +++ b/dwm.h Tue Aug 08 18:12:18 2006 +0200 @@ -22,7 +22,7 @@ }; /* atoms */ -enum { NetSupported, NetWMName, NetActiveWindow, NetLast }; +enum { NetSupported, NetWMName, NetLast }; enum { WMProtocols, WMDelete, WMLast }; /* cursor */ diff -r f4f5d000ce7a -r b92bbc2487c9 event.c --- a/event.c Tue Aug 08 17:08:45 2006 +0200 +++ b/event.c Tue Aug 08 18:12:18 2006 +0200 @@ -146,18 +146,6 @@ } static void -clientmessage(XEvent *e) -{ - Client *c; - XClientMessageEvent *ev = &e->xclient; - - if(ev->message_type == netatom[NetActiveWindow]) { - if((c = getclient(ev->window)) && c->tags[tsel]) - focus(c); - } -} - -static void configurerequest(XEvent *e) { Client *c; @@ -351,7 +339,6 @@ void (*handler[LASTEvent]) (XEvent *) = { [ButtonPress] = buttonpress, - [ClientMessage] = clientmessage, [ConfigureRequest] = configurerequest, [DestroyNotify] = destroynotify, [EnterNotify] = enternotify, diff -r f4f5d000ce7a -r b92bbc2487c9 main.c --- a/main.c Tue Aug 08 17:08:45 2006 +0200 +++ b/main.c Tue Aug 08 18:12:18 2006 +0200 @@ -201,7 +201,6 @@ wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); - netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False); XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, PropModeReplace, (unsigned char *) netatom, NetLast);