diff options
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 */ + } +} + |