diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-08 18:12:18 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-08 18:12:18 +0200 |
| commit | c225e1afc23e6862f9864bad3b7b11399dda36a1 (patch) | |
| tree | 3d9f3aa63cf6044c316253b707eca35fbb07d44a | |
| parent | implemented NET_ACTIVE_WINDOW support (diff) | |
| download | dwm-c225e1afc23e6862f9864bad3b7b11399dda36a1.tar.gz dwm-c225e1afc23e6862f9864bad3b7b11399dda36a1.zip | |
removed NET_ACTIVE_WINDOW handling
| -rw-r--r-- | client.c | 5 | ||||
| -rw-r--r-- | dwm.h | 2 | ||||
| -rw-r--r-- | event.c | 13 | ||||
| -rw-r--r-- | main.c | 1 |
4 files changed, 1 insertions, 20 deletions
| @@ -58,8 +58,6 @@ focus(Client *c) | |||
| 58 | drawtitle(c); | 58 | drawtitle(c); |
| 59 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); | 59 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
| 60 | XSync(dpy, False); | 60 | XSync(dpy, False); |
| 61 | XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, | ||
| 62 | PropModeReplace, (unsigned char *)&c->win, 1); | ||
| 63 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); | 61 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
| 64 | } | 62 | } |
| 65 | 63 | ||
| @@ -461,9 +459,6 @@ unmanage(Client *c) | |||
| 461 | arrange(NULL); | 459 | arrange(NULL); |
| 462 | if(sel) | 460 | if(sel) |
| 463 | focus(sel); | 461 | focus(sel); |
| 464 | else | ||
| 465 | XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, | ||
| 466 | PropModeReplace, (unsigned char *)NULL, 1); | ||
| 467 | } | 462 | } |
| 468 | 463 | ||
| 469 | void | 464 | void |
| @@ -22,7 +22,7 @@ union Arg { | |||
| 22 | }; | 22 | }; |
| 23 | 23 | ||
| 24 | /* atoms */ | 24 | /* atoms */ |
| 25 | enum { NetSupported, NetWMName, NetActiveWindow, NetLast }; | 25 | enum { NetSupported, NetWMName, NetLast }; |
| 26 | enum { WMProtocols, WMDelete, WMLast }; | 26 | enum { WMProtocols, WMDelete, WMLast }; |
| 27 | 27 | ||
| 28 | /* cursor */ | 28 | /* cursor */ |
| @@ -146,18 +146,6 @@ buttonpress(XEvent *e) | |||
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | static void | 148 | static void |
| 149 | clientmessage(XEvent *e) | ||
| 150 | { | ||
| 151 | Client *c; | ||
| 152 | XClientMessageEvent *ev = &e->xclient; | ||
| 153 | |||
| 154 | if(ev->message_type == netatom[NetActiveWindow]) { | ||
| 155 | if((c = getclient(ev->window)) && c->tags[tsel]) | ||
| 156 | focus(c); | ||
| 157 | } | ||
| 158 | } | ||
| 159 | |||
| 160 | static void | ||
| 161 | configurerequest(XEvent *e) | 149 | configurerequest(XEvent *e) |
| 162 | { | 150 | { |
| 163 | Client *c; | 151 | Client *c; |
| @@ -351,7 +339,6 @@ unmapnotify(XEvent *e) | |||
| 351 | 339 | ||
| 352 | void (*handler[LASTEvent]) (XEvent *) = { | 340 | void (*handler[LASTEvent]) (XEvent *) = { |
| 353 | [ButtonPress] = buttonpress, | 341 | [ButtonPress] = buttonpress, |
| 354 | [ClientMessage] = clientmessage, | ||
| 355 | [ConfigureRequest] = configurerequest, | 342 | [ConfigureRequest] = configurerequest, |
| 356 | [DestroyNotify] = destroynotify, | 343 | [DestroyNotify] = destroynotify, |
| 357 | [EnterNotify] = enternotify, | 344 | [EnterNotify] = enternotify, |
| @@ -201,7 +201,6 @@ main(int argc, char *argv[]) | |||
| 201 | wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); | 201 | wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); |
| 202 | netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); | 202 | netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); |
| 203 | netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); | 203 | netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); |
| 204 | netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False); | ||
| 205 | XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, | 204 | XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, |
| 206 | PropModeReplace, (unsigned char *) netatom, NetLast); | 205 | PropModeReplace, (unsigned char *) netatom, NetLast); |
| 207 | 206 | ||
