summaryrefslogtreecommitdiffhomepage
path: root/patch/ipc.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2021-04-07 15:35:56 +0200
committerbakkeby <[email protected]>2021-04-07 15:35:56 +0200
commitac737f9dfc427e0713176fc35373cd9410320f19 (patch)
tree8d2c55e04e21cc044dbf435e573884302e09cc07 /patch/ipc.c
parent0c88a49e27fd0888c81aea5dd3eef1c537164a6a (diff)
downloaddwm-flexipatch-ac737f9dfc427e0713176fc35373cd9410320f19.tar.gz
dwm-flexipatch-ac737f9dfc427e0713176fc35373cd9410320f19.zip
Adding xkb patch as per request #111
Diffstat (limited to 'patch/ipc.c')
-rw-r--r--patch/ipc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/patch/ipc.c b/patch/ipc.c
index e863afc..ef0e577 100644
--- a/patch/ipc.c
+++ b/patch/ipc.c
@@ -9,6 +9,15 @@ handlexevent(struct epoll_event *ev)
XEvent ev;
while (running && XPending(dpy)) {
XNextEvent(dpy, &ev);
+ #if XKB_PATCH
+ /* Unfortunately the xkbEventType is not constant hence it can't be part of the
+ * normal event handler below */
+ if (ev.type == xkbEventType) {
+ xkbeventnotify(&ev);
+ continue;
+ }
+ #endif // XKB_PATCH
+
if (handler[ev.type]) {
handler[ev.type](&ev); /* call handler */
ipc_send_events(mons, &lastselmon, selmon);