From 6f5aa9e4f3e30bd78df464109e05d9c900191b98 Mon Sep 17 00:00:00 2001 From: Hongfei Shang Date: Sun, 16 Apr 2023 16:08:51 +0800 Subject: [PATCH] x11: only managed window need readTransient X11Window::readTransient should not call setTransient for override-redirect windows. Signed-off-by: Hongfei Shang --- src/x11window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x11window.cpp b/src/x11window.cpp index cce665e59d..2e7fe7071d 100644 --- a/src/x11window.cpp +++ b/src/x11window.cpp @@ -3207,6 +3207,9 @@ void X11Window::readTransientProperty(Xcb::TransientFor &transientFor) void X11Window::readTransient() { + if (isUnmanaged()) { + return; + } Xcb::TransientFor transientFor = fetchTransient(); readTransientProperty(transientFor); }