1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

hyprland: fix focus grab

This commit is contained in:
bbedward
2025-11-26 12:46:19 -05:00
parent 039c98b9e3
commit d7b39634e6
9 changed files with 10 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ DankModal {
layerNamespace: "dms:bluetooth-pairing"
HyprlandFocusGrab {
windows: [root]
windows: [root.contentWindow]
active: CompositorService.isHyprland && root.shouldHaveFocus
}

View File

@@ -14,7 +14,7 @@ DankModal {
layerNamespace: "dms:clipboard"
HyprlandFocusGrab {
windows: [clipboardHistoryModal]
windows: [clipboardHistoryModal.contentWindow]
active: CompositorService.isHyprland && clipboardHistoryModal.shouldHaveFocus
}

View File

@@ -44,6 +44,8 @@ Item {
property bool keepContentLoaded: false
property bool keepPopoutsOpen: false
property var customKeyboardFocus: null
readonly property alias contentWindow: contentWindow
readonly property alias backgroundWindow: backgroundWindow
signal opened
signal dialogClosed

View File

@@ -12,7 +12,7 @@ DankModal {
layerNamespace: "dms:color-picker"
HyprlandFocusGrab {
windows: [root]
windows: [root.contentWindow]
active: CompositorService.isHyprland && root.shouldHaveFocus
}

View File

@@ -12,7 +12,7 @@ DankModal {
layerNamespace: "dms:notification-center-modal"
HyprlandFocusGrab {
windows: [notificationModal]
windows: [notificationModal.contentWindow]
active: CompositorService.isHyprland && notificationModal.shouldHaveFocus
}

View File

@@ -11,7 +11,7 @@ DankModal {
layerNamespace: "dms:polkit"
HyprlandFocusGrab {
windows: [root]
windows: [root.contentWindow]
active: CompositorService.isHyprland && root.shouldHaveFocus
}

View File

@@ -14,7 +14,7 @@ DankModal {
keepPopoutsOpen: true
HyprlandFocusGrab {
windows: [root]
windows: [root.contentWindow]
active: CompositorService.isHyprland && root.shouldHaveFocus
}

View File

@@ -11,7 +11,7 @@ DankModal {
layerNamespace: "dms:spotlight"
HyprlandFocusGrab {
windows: [spotlightModal]
windows: [spotlightModal.contentWindow]
active: CompositorService.isHyprland && spotlightModal.shouldHaveFocus
}

View File

@@ -12,7 +12,7 @@ DankModal {
keepPopoutsOpen: true
HyprlandFocusGrab {
windows: [root]
windows: [root.contentWindow]
active: CompositorService.isHyprland && root.shouldHaveFocus
}