removed launcherCloseOnClickOutside, now it's automatically true, also, launcher keyboard control is exclusive

This commit is contained in:
SomeElse
2026-05-16 05:00:19 +00:00
parent c8450b44cb
commit d1f892f3a0
2 changed files with 3 additions and 4 deletions

View File

@@ -105,7 +105,6 @@ QtObject {
// ────────────────────────────────────────────────────────────────────────
property string launcherScript: Quickshell.env("HOME") + "/.config/quickshell/launcher/launcher.sh"
property string launcherCacheDir: "/tmp/qs_launcher"
property bool launcherCloseOnClickOutside: true
property bool launcherSelectFirst: false
property bool launcherMipmapIcons: false

View File

@@ -140,8 +140,8 @@ PanelWindow {
WlrLayershell.layer: WlrLayer.Overlay
WlrLayershell.namespace: "main-shell-launcher"
WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: _isOpen ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
mask: Region { item: (root._isOpen && Cfg.Config.launcherCloseOnClickOutside) ? fullMask : clipContainer }
WlrLayershell.keyboardFocus: _isOpen ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
mask: Region { item: root._isOpen ? fullMask : clipContainer }
Item { id: fullMask; anchors.fill: parent }
@@ -184,7 +184,7 @@ PanelWindow {
MouseArea {
anchors.fill: parent
enabled: root._isOpen && Cfg.Config.launcherCloseOnClickOutside
enabled: root._isOpen
onClicked: root.close()
}