summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-01-19 13:51:05 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-02 13:34:28 -0500
commit62171ab39a83e015b9f0799fd45934a60e0edb54 (patch)
tree30d645b7a0a4071432bd15c63afa1a2ff0de0938
parentda2af2de23420c87cb1b06bef2cf725bef9be0f3 (diff)
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
-rw-r--r--src/bin/e_comp_wl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 35394c5ae..0d8eacf01 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
125 125
126 if (!ec->ignored) 126 if (!ec->ignored)
127 { 127 {
128 ec->take_focus = !starting; 128 if (ec->new_client)
129 EC_CHANGED(ec); 129 ec->take_focus = !starting;
130 else
131 evas_object_focus_set(ec->frame, !starting);
130 } 132 }
131 133
132 EINA_LIST_FOREACH(ec->e.state.video_child, l, tmp) 134 EINA_LIST_FOREACH(ec->e.state.video_child, l, tmp)