소스 검색

haiku: Correctly set keyboard focus (thanks, Kai!).

The message sent upon the window being activated or deactivated, to trigger
the call to SDL_SetKeyboardFocus was missing a mandatory parameter. So
keyboard focus was never properly set.

Fixes Bugzilla #3658.
Ryan C. Gordon 8 년 전
부모
커밋
de52dc2948
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/video/haiku/SDL_BWin.h

+ 1 - 0
src/video/haiku/SDL_BWin.h

@@ -250,6 +250,7 @@ class SDL_BWin:public BDirectWindow
 
     virtual void WindowActivated(bool active) {
         BMessage msg(BAPP_KEYBOARD_FOCUS);  /* Mouse focus sold separately */
+        msg.AddBool("focusGained", active);
         _PostWindowEvent(msg);
     }