mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-15 00:32:47 -04:00
system tray: fix parent screen binding
This commit is contained in:
@@ -1362,16 +1362,6 @@ BasePill {
|
|||||||
axis = axisObj;
|
axis = axisObj;
|
||||||
menuHandle = item?.menu;
|
menuHandle = item?.menu;
|
||||||
|
|
||||||
if (parentScreen) {
|
|
||||||
for (var i = 0; i < Quickshell.screens.length; i++) {
|
|
||||||
const s = Quickshell.screens[i];
|
|
||||||
if (s === parentScreen) {
|
|
||||||
menuWindow.screen = s;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
showMenu = true;
|
showMenu = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1448,6 +1438,7 @@ BasePill {
|
|||||||
|
|
||||||
WlrLayershell.namespace: "dms:tray-menu-window"
|
WlrLayershell.namespace: "dms:tray-menu-window"
|
||||||
visible: menuRoot.showMenu && (menuRoot.trayItem?.hasMenu ?? false)
|
visible: menuRoot.showMenu && (menuRoot.trayItem?.hasMenu ?? false)
|
||||||
|
screen: menuRoot.parentScreen
|
||||||
WlrLayershell.layer: WlrLayershell.Top
|
WlrLayershell.layer: WlrLayershell.Top
|
||||||
WlrLayershell.exclusiveZone: -1
|
WlrLayershell.exclusiveZone: -1
|
||||||
WlrLayershell.keyboardFocus: {
|
WlrLayershell.keyboardFocus: {
|
||||||
|
|||||||
Reference in New Issue
Block a user