Don't let Xlib own the event queue
Since commit 531f8b415c
, we are using Xlib for our X11 connection. However,
we still use XCB for event processing. This means we actually have to tell Xlib
to leave all events alone.
This might fix FS#1047. Perhaps.
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a1918b8306
commit
779d43fc46
|
@ -375,8 +375,8 @@ main(int argc, char **argv)
|
||||||
if (globalconf.display == NULL) {
|
if (globalconf.display == NULL) {
|
||||||
fatal("cannot open display");
|
fatal("cannot open display");
|
||||||
}
|
}
|
||||||
|
XSetEventQueueOwner(globalconf.display, XCBOwnsEventQueue);
|
||||||
globalconf.default_screen = XDefaultScreen(globalconf.display);
|
globalconf.default_screen = XDefaultScreen(globalconf.display);
|
||||||
|
|
||||||
globalconf.connection = XGetXCBConnection(globalconf.display);
|
globalconf.connection = XGetXCBConnection(globalconf.display);
|
||||||
|
|
||||||
/* Double checking that connection is good and operatable with xcb */
|
/* Double checking that connection is good and operatable with xcb */
|
||||||
|
|
Loading…
Reference in New Issue