discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3f7e6dc359999bb4ee05e6246dada6f50c722624

commit 3f7e6dc359999bb4ee05e6246dada6f50c722624
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 4 12:51:29 2016 -0400

    wl popup surfaces should not receive focus on show if parent is not focused
    
    fix T3339 harder
---
 src/bin/e_comp_wl.c | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index d69e858..8a4009e 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -113,14 +113,12 @@ _e_comp_wl_evas_cb_show(void *data, Evas *evas 
EINA_UNUSED, Evas_Object *obj EIN
 
    if (!ec->override) e_hints_window_visible_set(ec);
 
-
-   if ((!ec->ignored) && (!ec->comp_data->cursor))
-     {
-        if (ec->new_client)
-          ec->take_focus = !starting;
-        else
-          evas_object_focus_set(ec->frame, !starting);
-     }
+   if (ec->ignored || ec->comp_data->cursor) return;
+   if (ec->parent && (!ec->parent->focused)) return;
+   if (ec->new_client)
+     ec->take_focus = !starting;
+   else
+     evas_object_focus_set(ec->frame, !starting);
 }
 
 static void

-- 


Reply via email to