1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23: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" layerNamespace: "dms:bluetooth-pairing"
HyprlandFocusGrab { HyprlandFocusGrab {
windows: [root] windows: [root.contentWindow]
active: CompositorService.isHyprland && root.shouldHaveFocus active: CompositorService.isHyprland && root.shouldHaveFocus
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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