fix: quickshell bar spacing
This commit is contained in:
1 parent
fb7781e4a7
commit
b1afff322f
9 files changed
+169
-134
No files matched your search
@@ -21,6 +21,19 @@ Rectangle {
|
||||
|
||||
function focusInput() { input.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 a 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: field.visible && !input.activeFocus
|
||||
onTriggered: input.forceActiveFocus()
|
||||
}
|
||||
|
||||
height: 50
|
||||
color: Theme.colors.surface
|
||||
radius: Theme.geometry.radiusSmall
|
||||
|
||||
Reference in new issue
Block a user