workspace: restrict showing windows because HideUtilityWindowsForInactive=false to actual utility windows

BUG: 413549
This commit is contained in:
Xaver Hugl 2024-06-07 18:34:50 +02:00
parent f6540283d5
commit a6a85466cd

View file

@ -887,7 +887,8 @@ void Workspace::updateToolWindows(bool also_hide)
if (!options->isHideUtilityWindowsForInactive()) {
#if KWIN_BUILD_X11
for (auto it = m_windows.constBegin(); it != m_windows.constEnd(); ++it) {
if (X11Window *x11Window = qobject_cast<X11Window *>(*it)) {
X11Window *x11Window = qobject_cast<X11Window *>(*it);
if (x11Window && x11Window->isUtility()) {
x11Window->setHidden(false);
}
}