Skip to content

Commit

Permalink
Merge pull request #77977 from zaevi/fix_windows_popup_ime
Browse files Browse the repository at this point in the history
Fix IME doesn't work under Popup on Windows.
  • Loading branch information
akien-mga committed Jun 9, 2023
2 parents 9b31d25 + 1b149b7 commit 759309b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion platform/windows/display_server_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,9 +835,12 @@ void DisplayServerWindows::show_window(WindowID p_id) {
SetFocus(wd.hWnd); // Set keyboard focus.
} else if (wd.minimized) {
ShowWindow(wd.hWnd, SW_SHOWMINIMIZED);
} else if (wd.no_focus || wd.is_popup) {
} else if (wd.no_focus) {
// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-showwindow
ShowWindow(wd.hWnd, SW_SHOWNA);
} else if (wd.is_popup) {
ShowWindow(wd.hWnd, SW_SHOWNA);
SetFocus(wd.hWnd); // Set keyboard focus.
} else {
ShowWindow(wd.hWnd, SW_SHOW);
SetForegroundWindow(wd.hWnd); // Slightly higher priority.
Expand Down

0 comments on commit 759309b

Please sign in to comment.