summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/event.c b/event.c
index c8a87c12..5209be35 100644
--- a/event.c
+++ b/event.c
@@ -384,3 +384,16 @@ grabkeys()
GrabModeAsync, GrabModeAsync);
}
}
+
+void
+procevent()
+{
+ XEvent ev;
+
+ while(XPending(dpy)) {
+ XNextEvent(dpy, &ev);
+ if(handler[ev.type])
+ (handler[ev.type])(&ev); /* call handler */
+ }
+}
+