removed NET_ACTIVE_WINDOW handling
c225e1af
4 file(s) · +1 −20
| 58 | 58 | drawtitle(c); |
|
| 59 | 59 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
|
| 60 | 60 | XSync(dpy, False); |
|
| 61 | - | XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32, |
|
| 62 | - | PropModeReplace, (unsigned char *)&c->win, 1); |
|
| 63 | 61 | while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); |
|
| 64 | 62 | } |
|
| 65 | 63 | ||
| 461 | 459 | arrange(NULL); |
|
| 462 | 460 | if(sel) |
|
| 463 | 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 | 464 | void |
|
| 22 | 22 | }; |
|
| 23 | 23 | ||
| 24 | 24 | /* atoms */ |
|
| 25 | - | enum { NetSupported, NetWMName, NetActiveWindow, NetLast }; |
|
| 25 | + | enum { NetSupported, NetWMName, NetLast }; |
|
| 26 | 26 | enum { WMProtocols, WMDelete, WMLast }; |
|
| 27 | 27 | ||
| 28 | 28 | /* cursor */ |
| 146 | 146 | } |
|
| 147 | 147 | ||
| 148 | 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 | 149 | configurerequest(XEvent *e) |
|
| 162 | 150 | { |
|
| 163 | 151 | Client *c; |
|
| 351 | 339 | ||
| 352 | 340 | void (*handler[LASTEvent]) (XEvent *) = { |
|
| 353 | 341 | [ButtonPress] = buttonpress, |
|
| 354 | - | [ClientMessage] = clientmessage, |
|
| 355 | 342 | [ConfigureRequest] = configurerequest, |
|
| 356 | 343 | [DestroyNotify] = destroynotify, |
|
| 357 | 344 | [EnterNotify] = enternotify, |
|
| 201 | 201 | wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); |
|
| 202 | 202 | netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); |
|
| 203 | 203 | netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); |
|
| 204 | - | netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False); |
|
| 205 | 204 | XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, |
|
| 206 | 205 | PropModeReplace, (unsigned char *) netatom, NetLast); |
|
| 207 | 206 |