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:
Uli Schlachter 2012-10-24 15:22:52 +02:00
parent a1918b8306
commit 779d43fc46
1 changed files with 1 additions and 1 deletions

View File

@ -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 */