diff options
author | Anselm R.Garbe | 2006-08-15 07:31:42 +0200 |
---|---|---|
committer | Anselm R.Garbe | 2006-08-15 07:31:42 +0200 |
commit | b6ad663f87b195b1494798030f826cb2fbc71a23 (patch) | |
tree | ff6cc4878eba5d2abaf0f10d318effd99acb16ce /event.c | |
parent | ee31e38dc75832a66cb0fc01bcf2f419ac96a20b (diff) |
changed main event loop
Diffstat (limited to 'event.c')
-rw-r--r-- | event.c | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 */ + } +} + |