removed launcherCloseOnClickOutside, now it's automatically true, also, launcher keyboard control is exclusive
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user