1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

niri: fix effectiveScreenAssignment in modal

This commit is contained in:
bbedward
2026-01-10 10:13:41 -05:00
parent c60cd3a341
commit 7c936cacfb
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,6 @@ Item {
property bool animationsEnabled: true
function open() {
ModalManager.openModal(root);
closeTimer.stop();
const focusedScreen = CompositorService.getFocusedScreen();
if (focusedScreen) {
@@ -66,6 +65,7 @@ Item {
if (!useSingleWindow)
clickCatcher.screen = focusedScreen;
}
ModalManager.openModal(root);
shouldBeVisible = true;
if (!useSingleWindow)
clickCatcher.visible = true;

View File

@@ -14,7 +14,7 @@ Scope {
property bool isClosing: false
property bool releaseKeyboard: false
readonly property bool spotlightModalOpen: PopoutService.spotlightModal?.spotlightOpen ?? false
property bool overlayActive: (NiriService.inOverview && !spotlightModalOpen) || searchActive
property bool overlayActive: NiriService.inOverview || searchActive
function showSpotlight(screenName) {
isClosing = false;