Skip to content

Commit

Permalink
🐛 Fix issues related to window interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
guiyanakuang committed Jun 15, 2024
1 parent 043050a commit 5cd5181
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ class WinAppWindowManager(
searchWindowState.position = calPosition(graphicsDevice.defaultConfiguration.bounds)
}

prevWinAppInfo = User32.bringToFront(SEARCH_WINDOW_TITLE, mainHWND, searchHWND)

// Wait for the window to be ready, otherwise bringToFront may cause the window to fail to get focus
delay(500)

prevWinAppInfo = User32.bringToFront(SEARCH_WINDOW_TITLE, mainHWND, searchHWND)
searchFocusRequester.requestFocus()
}

Expand Down

0 comments on commit 5cd5181

Please sign in to comment.