mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-10 06:19:36 -04:00
system tray: fix parent screen binding
This commit is contained in:
@@ -1362,16 +1362,6 @@ BasePill {
|
||||
axis = axisObj;
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -1448,6 +1438,7 @@ BasePill {
|
||||
|
||||
WlrLayershell.namespace: "dms:tray-menu-window"
|
||||
visible: menuRoot.showMenu && (menuRoot.trayItem?.hasMenu ?? false)
|
||||
screen: menuRoot.parentScreen
|
||||
WlrLayershell.layer: WlrLayershell.Top
|
||||
WlrLayershell.exclusiveZone: -1
|
||||
WlrLayershell.keyboardFocus: {
|
||||
|
||||
Reference in New Issue
Block a user