- commit
- f031601c34d721c0395965cbeed18e006add1c57
- parent
- c3de4d7608060f3d26bf668a2a0e27fffd815b34
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-10-13 07:35
rm support for WMTakeFocus
Diffstat
| M | xiwm.c | 4 | +--- |
1 files changed, 1 insertions, 3 deletions
diff --git a/xiwm.c b/xiwm.c
@@ -29,7 +29,7 @@ enum { NetSupported, NetWMName, NetWMDesktop, NetWMState, NetWMCheck,
29 29 NetWMFullscreen, NetActiveWindow, NetWMWindowType,
30 30 NetWMWindowTypeDialog, NetWMWindowTypeDock,
31 31 NetClientList, NetCurrentDesktop, NetLast }; /* EWMH atoms */
32 -1 enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
-1 32 enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
33 33 typedef enum { PFloat, PMax, PLeft, PRight } Position;
34 34
35 35 typedef union {
@@ -513,7 +513,6 @@ focus(Client *c)
513 513 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
514 514 XChangeProperty(dpy, root, netatom[NetActiveWindow], XA_WINDOW, 32,
515 515 PropModeReplace, (unsigned char *) &(c->win), 1);
516 -1 sendevent(c, wmatom[WMTakeFocus]);
517 516 } else {
518 517 XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
519 518 XDeleteProperty(dpy, root, netatom[NetActiveWindow]);
@@ -937,7 +936,6 @@ setup(void)
937 936 wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False);
938 937 wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False);
939 938 wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False);
940 -1 wmatom[WMTakeFocus] = XInternAtom(dpy, "WM_TAKE_FOCUS", False);
941 939 netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False);
942 940 netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
943 941 netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);