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
This commit is contained in:
Mike Blumenkrantz 2016-01-19 13:51:05 -05:00
parent e3f829ace7
commit 77485f322e
1 changed files with 4 additions and 2 deletions

View File

@ -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)