1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -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 property bool animationsEnabled: true
function open() { function open() {
ModalManager.openModal(root);
closeTimer.stop(); closeTimer.stop();
const focusedScreen = CompositorService.getFocusedScreen(); const focusedScreen = CompositorService.getFocusedScreen();
if (focusedScreen) { if (focusedScreen) {
@@ -66,6 +65,7 @@ Item {
if (!useSingleWindow) if (!useSingleWindow)
clickCatcher.screen = focusedScreen; clickCatcher.screen = focusedScreen;
} }
ModalManager.openModal(root);
shouldBeVisible = true; shouldBeVisible = true;
if (!useSingleWindow) if (!useSingleWindow)
clickCatcher.visible = true; clickCatcher.visible = true;

View File

@@ -14,7 +14,7 @@ Scope {
property bool isClosing: false property bool isClosing: false
property bool releaseKeyboard: false property bool releaseKeyboard: false
readonly property bool spotlightModalOpen: PopoutService.spotlightModal?.spotlightOpen ?? 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) { function showSpotlight(screenName) {
isClosing = false; isClosing = false;