From a51ba112fd5a26de216a94aa2d427d1cabfefa55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 2 May 2013 09:20:13 +0200 Subject: [PATCH] Port (un)grabXServer to xcb --- utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils.cpp b/utils.cpp index 790a586bdf..7334f1f432 100644 --- a/utils.cpp +++ b/utils.cpp @@ -216,15 +216,15 @@ static int server_grab_count = 0; void grabXServer() { if (++server_grab_count == 1) - XGrabServer(display()); + xcb_grab_server(connection()); } void ungrabXServer() { assert(server_grab_count > 0); if (--server_grab_count == 0) { - XUngrabServer(display()); - XFlush(display()); + xcb_ungrab_server(connection()); + xcb_flush(connection()); } }