From 051a91a1739e19981a7169afef7d85af4de8e62f Mon Sep 17 00:00:00 2001 From: grodriguez Date: Fri, 31 Jan 2014 10:14:08 +0100 Subject: Fixes race condition XSelectInput must be called before XMapRaised. --- src/xlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3