discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=62171ab39a83e015b9f0799fd45934a60e0edb54

commit 62171ab39a83e015b9f0799fd45934a60e0edb54
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Jan 19 13:51:05 2016 -0500

    improve focus setting during wayland client show callback
    
    take_focus will only be handled if the new_client flag is set. in all
    other casees, focus_set should be called directly
    
    new_client flag implies changed flag
---
 src/bin/e_comp_wl.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 35394c5..0d8eacf 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -125,8 +125,10 @@ _e_comp_wl_evas_cb_show(void *data, Evas *evas 
EINA_UNUSED, Evas_Object *obj EIN
 
    if (!ec->ignored)
      {
-        ec->take_focus = !starting;
-        EC_CHANGED(ec);
+        if (ec->new_client)
+          ec->take_focus = !starting;
+        else
+          evas_object_focus_set(ec->frame, !starting);
      }
 
    EINA_LIST_FOREACH(ec->e.state.video_child, l, tmp)

-- 


Reply via email to