swk

static widget kit
git clone git://git.suckless.org/swk
Log | Files | Refs | README | LICENSE

commit fb44a42f301fa8a0c5a24e01c5f160fefb872371
parent 1fb298ac17f111d9e9808471be0b6868e791795a
Author: anselm@garbe.us <unknown>
Date:   Thu, 19 Aug 2010 10:57:49 +0100

minor fix to has_event
Diffstat:
gi_x11.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/gi_x11.c b/gi_x11.c @@ -69,9 +69,7 @@ swk_gi_exit() { int swk_gi_has_event(SwkWindow *w) { - if(!has_event) - has_event = XNextEvent(display, &lastev); // XXX This must be nonblocking - return has_event; + return (has_event = XCheckMaskEvent(display, AnyEvent, &lastev)); } SwkEvent *