Skip to content

Commit

Permalink
fix: never get keyboard focus in wayland
Browse files Browse the repository at this point in the history
log: KeyboardInteractivity should be OnDemand
  • Loading branch information
wineee committed Jul 26, 2024
1 parent bed5528 commit f107d14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ QtObject {
return DLayerShellWindow.AnchorBottom | DLayerShellWindow.AnchorLeft
}
}
DLayerShellWindow.keyboardInteractivity: DLayerShellWindow.KeyboardInteractivityOnDemand
flags: {
if (DebugHelper.useRegularWindow) return Qt.Window
return ( Qt.FramelessWindowHint | Qt.Tool)
Expand Down Expand Up @@ -289,6 +290,7 @@ QtObject {

DLayerShellWindow.anchors: DLayerShellWindow.AnchorBottom | DLayerShellWindow.AnchorTop | DLayerShellWindow.AnchorLeft | DLayerShellWindow.AnchorRight
DLayerShellWindow.layer: DLayerShellWindow.LayerTop
DLayerShellWindow.keyboardInteractivity: DLayerShellWindow.KeyboardInteractivityOnDemand

// visibility: Window.FullScreen
flags: {
Expand Down

0 comments on commit f107d14

Please sign in to comment.