[hackers] [swk] minor fix to has_event || anselm

From: <hg_AT_suckless.org>
Date: Thu, 19 Aug 2010 09:57:55 +0000 (UTC)

changeset: 58:7753c39e5779
tag: tip
user: anselm_AT_garbe.us
date: Thu Aug 19 10:57:49 2010 +0100
files: gi_x11.c
description:
minor fix to has_event

diff -r db4085c81f6a -r 7753c39e5779 gi_x11.c
--- a/gi_x11.c Thu Aug 19 10:48:27 2010 +0100
+++ b/gi_x11.c Thu Aug 19 10:57:49 2010 +0100
@@ -69,9 +69,7 @@
 
 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 *
Received on Thu Aug 19 2010 - 11:57:55 CEST

This archive was generated by hypermail 2.2.0 : Thu Aug 19 2010 - 12:00:08 CEST