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); } }