Skip to content

Commit

Permalink
fix: launchpad can not get input focus when second show
Browse files Browse the repository at this point in the history
when window visible changed, request window activate

log: make window activated when shown
  • Loading branch information
tsic404 committed Jan 4, 2024
1 parent 18e84ab commit 4880835
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ QtObject {
DWindow.enableSystemResize: false
DWindow.enableSystemMove: false

onVisibleChanged: {
if (visible) {
requestActivate()
}
}

Loader {
anchors.fill: parent
focus: true
Expand Down

0 comments on commit 4880835

Please sign in to comment.