1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

niri: close spotlight when closing overview

This commit is contained in:
bbedward
2025-11-20 13:56:35 -05:00
parent 09cf8c9641
commit 2dbfec0307
2 changed files with 13 additions and 0 deletions

View File

@@ -11,6 +11,15 @@ Scope {
// Only show overlay when in overview and spotlight is not open
property bool overlayActive: NiriService.inOverview && !(PopoutService.spotlightModal?.spotlightOpen ?? false)
Connections {
target: NiriService
function onInOverviewChanged() {
if (!NiriService.inOverview && PopoutService.spotlightModal?.openedFromOverview) {
PopoutService.spotlightModal.hide()
}
}
}
Loader {
id: niriOverlayLoader
active: NiriService.inOverview
@@ -93,6 +102,7 @@ Scope {
Qt.callLater(() => {
if (PopoutService.spotlightModal) {
if (event.text) {
PopoutService.spotlightModal.openedFromOverview = true
PopoutService.spotlightModal.showWithQuery(event.text.trim())
}
}