x11: only managed window need readTransient

X11Window::readTransient should not call setTransient for override-redirect windows.

Signed-off-by: Hongfei Shang <shanghongfei@kylinos.cn>
This commit is contained in:
Hongfei Shang 2023-04-16 16:08:51 +08:00 committed by Vlad Zahorodnii
parent cfe656e506
commit 6f5aa9e4f3

View file

@ -3207,6 +3207,9 @@ void X11Window::readTransientProperty(Xcb::TransientFor &transientFor)
void X11Window::readTransient()
{
if (isUnmanaged()) {
return;
}
Xcb::TransientFor transientFor = fetchTransient();
readTransientProperty(transientFor);
}