From a6a85466cd9c694c30e7c31c6ce6fb288e89474d Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Fri, 7 Jun 2024 18:34:50 +0200 Subject: [PATCH] workspace: restrict showing windows because HideUtilityWindowsForInactive=false to actual utility windows BUG: 413549 --- src/workspace.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/workspace.cpp b/src/workspace.cpp index 8dd5ec8c90..246ac9bb3a 100644 --- a/src/workspace.cpp +++ b/src/workspace.cpp @@ -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(*it)) { + X11Window *x11Window = qobject_cast(*it); + if (x11Window && x11Window->isUtility()) { x11Window->setHidden(false); } }