aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgrodriguez <guille.rodriguez@gmail.com>2014-01-31 10:14:08 +0100
committergrodriguez <guille.rodriguez@gmail.com>2014-01-31 10:19:42 +0100
commit051a91a1739e19981a7169afef7d85af4de8e62f (patch)
tree5a3f1419834e050f6abca1b8c6b1d9fc8faf4e4f /src
parent0c7a2ee97ee862fd9d50b0aabab3cf97425d7daf (diff)
downloadmirror-meh-051a91a1739e19981a7169afef7d85af4de8e62f.tar.gz
mirror-meh-051a91a1739e19981a7169afef7d85af4de8e62f.tar.bz2
mirror-meh-051a91a1739e19981a7169afef7d85af4de8e62f.zip
Fixes race condition
XSelectInput must be called before XMapRaised.
Diffstat (limited to 'src')
-rw-r--r--src/xlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xlib.c b/src/xlib.c
index ebc3a4c..e46e358 100644
--- a/src/xlib.c
+++ b/src/xlib.c
@@ -184,8 +184,8 @@ void backend_init(){
backend_setaspect(1, 1);
gc = XCreateGC(display, window, 0, NULL);
- XMapRaised(display, window);
XSelectInput(display, window, StructureNotifyMask | ExposureMask | KeyPressMask);
+ XMapRaised(display, window);
XFlush(display);
XSetIOErrorHandler(xquit);
XFlush(display);