[mutter] clutter/stage: Actually set key focus to an actor on key focus



commit 553211dd81a849f33f0aca447c8683f031fff868
Author: Marco Trevisan (Treviño) <mail 3v1n0 net>
Date:   Tue Oct 15 16:38:14 2019 +0200

    clutter/stage: Actually set key focus to an actor on key focus
    
    As per commit c2d03bf73 we're using a private method to set the actors key
    focus and emit key-focus-in signal, but we're using inverted logic here.
    
    So flip the parameter to match the expected result.
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/860

 clutter/clutter/clutter-stage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index c8477972e..fd2d3008c 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -3049,7 +3049,7 @@ clutter_stage_set_key_focus (ClutterStage *stage,
   if (actor != NULL)
     {
       priv->key_focused_actor = actor;
-      _clutter_actor_set_has_key_focus (actor, FALSE);
+      _clutter_actor_set_has_key_focus (actor, TRUE);
     }
   else
     _clutter_actor_set_has_key_focus (CLUTTER_ACTOR (stage), TRUE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]