diff options
author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-15 07:31:42 +0200 |
---|---|---|
committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-15 07:31:42 +0200 |
commit | b6ad663f87b195b1494798030f826cb2fbc71a23 (patch) | |
tree | ff6cc4878eba5d2abaf0f10d318effd99acb16ce /event.c | |
parent | ee31e38dc75832a66cb0fc01bcf2f419ac96a20b (diff) | |
download | dwm-b6ad663f87b195b1494798030f826cb2fbc71a23.tar.gz |
changed main event loop
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 13 |
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 */ + } +} + |