From b6ad663f87b195b1494798030f826cb2fbc71a23 Mon Sep 17 00:00:00 2001 From: Anselm R.Garbe Date: Tue, 15 Aug 2006 07:31:42 +0200 Subject: changed main event loop --- event.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'event.c') 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 */ + } +} + -- cgit v1.2.3