diff --git a/quickshell/Modules/WorkspaceOverlays/NiriOverviewOverlay.qml b/quickshell/Modules/WorkspaceOverlays/NiriOverviewOverlay.qml index af673cb9..667a0797 100644 --- a/quickshell/Modules/WorkspaceOverlays/NiriOverviewOverlay.qml +++ b/quickshell/Modules/WorkspaceOverlays/NiriOverviewOverlay.qml @@ -91,6 +91,14 @@ Scope { readonly property bool isActiveScreen: screen.name === NiriService.currentOutput readonly property bool shouldShowSpotlight: niriOverviewScope.searchActive && screen.name === niriOverviewScope.searchActiveScreen && !niriOverviewScope.isClosing readonly property bool isSpotlightScreen: screen.name === niriOverviewScope.searchActiveScreen + property bool hasActivePopout: !!PopoutManager.currentPopoutsByScreen[screen.name] + + Connections { + target: PopoutManager + function onPopoutChanged() { + overlayWindow.hasActivePopout = !!PopoutManager.currentPopoutsByScreen[overlayWindow.screen.name]; + } + } screen: modelData visible: NiriService.inOverview || niriOverviewScope.isClosing @@ -106,6 +114,8 @@ Scope { return WlrKeyboardFocus.None; if (niriOverviewScope.releaseKeyboard) return WlrKeyboardFocus.None; + if (hasActivePopout) + return WlrKeyboardFocus.None; return WlrKeyboardFocus.Exclusive; }