[Commits] SDL: haiku: Correctly set keyboard focus (thanks, Kai!).

libsdl.org revision control commits-owner at libsdl.org
Sun May 28 12:36:15 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/57e3891f1ef8
changeset: 11044:57e3891f1ef8
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Sun May 28 15:36:09 2017 -0400
description:
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.

diffstat:

 src/video/haiku/SDL_BWin.h |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 5be3faa49e54 -r 57e3891f1ef8 src/video/haiku/SDL_BWin.h
--- a/src/video/haiku/SDL_BWin.h	Sun May 28 07:14:11 2017 -0400
+++ b/src/video/haiku/SDL_BWin.h	Sun May 28 15:36:09 2017 -0400
@@ -250,6 +250,7 @@
 
     virtual void WindowActivated(bool active) {
         BMessage msg(BAPP_KEYBOARD_FOCUS);  /* Mouse focus sold separately */
+        msg.AddBool("focusGained", active);
         _PostWindowEvent(msg);
     }
 


More information about the commits mailing list