From 3c5d7555a46af04d6b210e1c21222083c80182f0 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Wed, 3 Oct 2018 13:51:00 +0200 Subject: [PATCH] XCBify X{Unm,M}apWindow Signed-off-by: Uli Schlachter --- src/compton.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/compton.c b/src/compton.c index 44f9cd2..c100b15 100644 --- a/src/compton.c +++ b/src/compton.c @@ -1995,7 +1995,7 @@ map_win(session_t *ps, Window id) { // Unmap overlay window if it got mapped but we are currently not // in redirected state. if (ps->overlay && id == ps->overlay && !ps->redirected) { - XUnmapWindow(ps->dpy, ps->overlay); + xcb_unmap_window(c, ps->overlay); XFlush(ps->dpy); } @@ -4550,7 +4550,7 @@ init_overlay(session_t *ps) { // Unmap overlay, firstly. But this typically does not work because // the window isn't created yet. - // XUnmapWindow(ps->dpy, ps->overlay); + // xcb_unmap_window(c, ps->overlay); // XFlush(ps->dpy); } else { @@ -4626,7 +4626,7 @@ redir_start(session_t *ps) { // Map overlay window. Done firstly according to this: // https://bugzilla.gnome.org/show_bug.cgi?id=597014 if (ps->overlay) - XMapWindow(ps->dpy, ps->overlay); + xcb_map_window(c, ps->overlay); xcb_composite_redirect_subwindows(c, ps->root, XCB_COMPOSITE_REDIRECT_MANUAL); @@ -4669,7 +4669,7 @@ redir_stop(session_t *ps) { xcb_composite_unredirect_subwindows(c, ps->root, XCB_COMPOSITE_REDIRECT_MANUAL); // Unmap overlay window if (ps->overlay) - XUnmapWindow(ps->dpy, ps->overlay); + xcb_unmap_window(c, ps->overlay); // Must call XSync() here XSync(ps->dpy, False);