mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-12 17:21:17 +00:00
Panels: proper focus management with the new architecture.
This commit is contained in:
@@ -28,8 +28,6 @@ Item {
|
||||
property real preferredHeight: 900
|
||||
property real preferredWidthRatio
|
||||
property real preferredHeightRatio
|
||||
property color panelBackgroundColor: Color.mSurface
|
||||
property color panelBorderColor: Color.mOutline
|
||||
property var buttonItem: null
|
||||
property bool forceAttachToBar: false
|
||||
|
||||
@@ -41,6 +39,9 @@ Item {
|
||||
property bool panelAnchorLeft: false
|
||||
property bool panelAnchorRight: false
|
||||
|
||||
// Keyboard focus
|
||||
property bool exclusiveKeyboard: true
|
||||
|
||||
// Track if window has been created (for lazy loading)
|
||||
property bool windowCreated: false
|
||||
|
||||
@@ -190,8 +191,7 @@ Item {
|
||||
placeholder: panelPlaceholder
|
||||
panelContent: root.panelContent
|
||||
panelWrapper: root // Pass reference to SmartPanel for keyboard handlers
|
||||
panelBackgroundColor: root.panelBackgroundColor
|
||||
panelBorderColor: root.panelBorderColor
|
||||
exclusiveKeyboard: root.exclusiveKeyboard
|
||||
|
||||
// Forward signals
|
||||
onPanelOpened: root.opened()
|
||||
|
||||
Reference in New Issue
Block a user