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:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user