WidgetSetting: fixes not being able to type when opening settings through context menu

This commit is contained in:
Ly-sec
2025-11-21 14:02:24 +01:00
parent 9c955cdd39
commit 63331c1018
3 changed files with 103 additions and 58 deletions
+4 -1
View File
@@ -29,10 +29,13 @@ PanelWindow {
// Use Top layer (same as MainScreen) for proper event handling
WlrLayershell.layer: WlrLayer.Top
WlrLayershell.keyboardFocus: WlrKeyboardFocus.None
WlrLayershell.keyboardFocus: hasDialog ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
WlrLayershell.namespace: "noctalia-" + windowType + "-" + (screen?.name || "unknown")
WlrLayershell.exclusionMode: ExclusionMode.Ignore
// Track if a dialog is currently open (needed for keyboard focus)
property bool hasDialog: false
// Register with PanelService so widgets can find this window
Component.onCompleted: {
objectName = "popupMenuWindow-" + (screen?.name || "unknown");