소스 검색

Fixed detecting focus change to child dialogs

Fixes https://github.com/libsdl-org/SDL/issues/5157
Sam Lantinga 3 년 전
부모
커밋
957c48b4c7
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/video/windows/SDL_windowsevents.c

+ 1 - 0
src/video/windows/SDL_windowsevents.c

@@ -695,6 +695,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
     case WM_SETFOCUS:
     case WM_KILLFOCUS:
+    case WM_ENTERIDLE:
         {
             /* Update the focus in case it's changing between top-level windows in the same application */
             WIN_UpdateFocus(data->window);