summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-15 07:31:42 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-15 07:31:42 +0200
commitb6ad663f87b195b1494798030f826cb2fbc71a23 (patch)
treeff6cc4878eba5d2abaf0f10d318effd99acb16ce /event.c
parentee31e38dc75832a66cb0fc01bcf2f419ac96a20b (diff)
changed main event loop
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 c8a87c1..5209be3 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 */
+ }
+}
+