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