diff options
author | grodriguez <guille.rodriguez@gmail.com> | 2014-01-31 10:14:08 +0100 |
---|---|---|
committer | grodriguez <guille.rodriguez@gmail.com> | 2014-01-31 10:19:42 +0100 |
commit | 051a91a1739e19981a7169afef7d85af4de8e62f (patch) | |
tree | 5a3f1419834e050f6abca1b8c6b1d9fc8faf4e4f /src | |
parent | 0c7a2ee97ee862fd9d50b0aabab3cf97425d7daf (diff) | |
download | mirror-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |