1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-12 00:32:17 -04:00

dankbar: Fix widget context focus w/Autohide enabled

This commit is contained in:
purian23
2026-02-09 19:42:27 -05:00
parent 8c01deba86
commit a168b12bb2
4 changed files with 84 additions and 0 deletions

View File

@@ -37,10 +37,18 @@ PanelWindow {
desktopEntry = entry || null;
visible = true;
if (targetScreen) {
TrayMenuManager.registerMenu(targetScreen.name, root);
}
}
function close() {
visible = false;
if (root.screen) {
TrayMenuManager.unregisterMenu(root.screen.name);
}
}
screen: null
@@ -56,6 +64,19 @@ PanelWindow {
bottom: true
}
Component.onDestruction: {
if (root.screen) {
TrayMenuManager.unregisterMenu(root.screen.name);
}
}
Connections {
target: PopoutManager
function onPopoutOpening() {
root.close();
}
}
Rectangle {
id: menuContainer