From 8168c38d4f9f180c0d4eef632646e97fbd7e7f50 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 4 Aug 2019 16:41:28 +0100 Subject: [PATCH] core: no need to unredirect the registration window This window is invisible anyway, whether it's redirected should be inconsequential. Signed-off-by: Yuxuan Shui --- src/compton.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/compton.c b/src/compton.c index 7d34829..17263df 100644 --- a/src/compton.c +++ b/src/compton.c @@ -918,13 +918,6 @@ static bool register_cm(session_t *ps) { return false; } - // Unredirect the window if it's redirected, just in case - if (ps->redirected) - xcb_composite_unredirect_window(ps->c, ps->reg_win, - ps->o.debug_mode - ? XCB_COMPOSITE_REDIRECT_AUTOMATIC - : XCB_COMPOSITE_REDIRECT_MANUAL); - { XClassHint *h = XAllocClassHint(); if (h) {