forked from enlightenment/enlightenment
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:
parent
e3f829ace7
commit
77485f322e
|
@ -125,8 +125,10 @@ _e_comp_wl_evas_cb_show(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EIN
|
||||||
|
|
||||||
if (!ec->ignored)
|
if (!ec->ignored)
|
||||||
{
|
{
|
||||||
ec->take_focus = !starting;
|
if (ec->new_client)
|
||||||
EC_CHANGED(ec);
|
ec->take_focus = !starting;
|
||||||
|
else
|
||||||
|
evas_object_focus_set(ec->frame, !starting);
|
||||||
}
|
}
|
||||||
|
|
||||||
EINA_LIST_FOREACH(ec->e.state.video_child, l, tmp)
|
EINA_LIST_FOREACH(ec->e.state.video_child, l, tmp)
|
||||||
|
|
Loading…
Reference in New Issue