haiku: Correctly set keyboard focus (thanks, Kai!).
authorRyan C. Gordon <icculus@icculus.org>
Sun, 28 May 2017 15:36:09 -0400
changeset 1104457e3891f1ef8
parent 11043 5be3faa49e54
child 11045 cf4e14eedfdf
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.
src/video/haiku/SDL_BWin.h
     1.1 --- a/src/video/haiku/SDL_BWin.h	Sun May 28 07:14:11 2017 -0400
     1.2 +++ b/src/video/haiku/SDL_BWin.h	Sun May 28 15:36:09 2017 -0400
     1.3 @@ -250,6 +250,7 @@
     1.4  
     1.5      virtual void WindowActivated(bool active) {
     1.6          BMessage msg(BAPP_KEYBOARD_FOCUS);  /* Mouse focus sold separately */
     1.7 +        msg.AddBool("focusGained", active);
     1.8          _PostWindowEvent(msg);
     1.9      }
    1.10