From 85f8a533604f9f8d8d61aea8987a82a211ea10a0 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 18 Oct 2021 13:00:32 +0300 Subject: [PATCH] x11: Properly unredirect windows if compositing is not possible Before attempting to create scenes, kwin will redirect windows but if the opengl scene can't be created, it won't unredirect windows, which seems to cause issues on aarch64. BUG: 443953 --- src/composite.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/composite.cpp b/src/composite.cpp index 8d8edb323b..2317ad9ff7 100644 --- a/src/composite.cpp +++ b/src/composite.cpp @@ -251,6 +251,10 @@ bool Compositor::setupStart() delete m_scene; m_scene = nullptr; + if (auto *con = kwinApp()->x11Connection()) { + xcb_composite_unredirect_subwindows(con, kwinApp()->x11RootWindow(), + XCB_COMPOSITE_REDIRECT_MANUAL); + } if (m_selectionOwner) { m_selectionOwner->setOwning(false); m_selectionOwner->release();