discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=77485f322ed82dc31a3f1efec228fcf9500f6613

commit 77485f322ed82dc31a3f1efec228fcf9500f6613
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 626f6b3..111a786 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