fix: quickshell bar spacing
This commit is contained in:
1 parent
3edf76b4c7
commit
b08b0816f4
9 files changed
+169
-134
No files matched your search
@@ -168,11 +168,17 @@ PanelWindow {
|
||||
anchors.fill: parent
|
||||
focus: true
|
||||
|
||||
Connections {
|
||||
target: pickerWindow
|
||||
function onVisibleChanged() {
|
||||
if (pickerWindow.visible) keyHandler.forceActiveFocus();
|
||||
}
|
||||
// The layer-shell surface only gets real keyboard focus from the
|
||||
// compositor asynchronously after it's first mapped, so a single
|
||||
// forceActiveFocus() call right on visible-toggle can silently lose
|
||||
// input the first time this panel is shown in a session. There's no
|
||||
// reliable signal for "the compositor granted focus now" on a
|
||||
// wlr-layer-shell surface, so just retry until it actually sticks.
|
||||
Timer {
|
||||
interval: 30
|
||||
repeat: true
|
||||
running: pickerWindow.visible && !keyHandler.activeFocus
|
||||
onTriggered: keyHandler.forceActiveFocus()
|
||||
}
|
||||
|
||||
Keys.onEscapePressed: (event) => {
|
||||
|
||||
Reference in new issue
Block a user