From b86190452cba3aae8e515dc1c1ce9459af1d259e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 3 Oct 2018 13:52:52 +0200 Subject: [PATCH] XCBify X{Ung,G}abServer Signed-off-by: Uli Schlachter --- src/compton.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compton.c b/src/compton.c index c100b15f..ced81ebd 100644 --- a/src/compton.c +++ b/src/compton.c @@ -5389,7 +5389,7 @@ session_init(session_t *ps_old, int argc, char **argv) { ev_set_priority(&ps->event_check->w, EV_MINPRI); ev_prepare_start(ps->loop, &ps->event_check->w); - XGrabServer(ps->dpy); + xcb_grab_server(c); { Window root_return, parent_return; @@ -5410,8 +5410,8 @@ session_init(session_t *ps_old, int argc, char **argv) { recheck_focus(ps); } - XUngrabServer(ps->dpy); - // ALWAYS flush after XUngrabServer()! + xcb_ungrab_server(c); + // ALWAYS flush after xcb_ungrab_server()! XFlush(ps->dpy); // Initialize DBus