projects
/
free-sw
/
xcb
/
libxcb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ec1383
)
xcb_poll_for_event: Return already-read events before read(2)ing again.
author
Jamey Sharp
<jamey@minilop.net>
Sun, 3 Jun 2007 01:29:37 +0000
(18:29 -0700)
committer
Jamey Sharp
<jamey@minilop.net>
Sun, 3 Jun 2007 01:29:37 +0000
(18:29 -0700)
src/xcb_in.c
patch
|
blob
|
history
diff --git
a/src/xcb_in.c
b/src/xcb_in.c
index
1cb6b69
..
2997de4
100644
(file)
--- a/
src/xcb_in.c
+++ b/
src/xcb_in.c
@@
-403,7
+403,8
@@
xcb_generic_event_t *xcb_poll_for_event(xcb_connection_t *c)
{
_xcb_lock_io(c);
/* FIXME: follow X meets Z architecture changes. */
- if(_xcb_in_read(c)) /* _xcb_in_read shuts down the connection on error */
+ ret = get_event(c);
+ if(!ret && _xcb_in_read(c)) /* _xcb_in_read shuts down the connection on error */
ret = get_event(c);
_xcb_unlock_io(c);
}