set take_focus more appropriately for wl clients

This commit is contained in:
Mike Blumenkrantz 2015-02-10 19:15:22 -05:00
parent fff95929c6
commit e3efba7ff7
1 changed files with 4 additions and 2 deletions

View File

@ -122,7 +122,10 @@ _e_comp_wl_evas_cb_show(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EIN
{
ec->comp_data->need_reparent = EINA_TRUE;
ec->visible = EINA_TRUE;
if (ec->internal_elm_win) ec->take_focus = EINA_TRUE;
}
if (!e_client_util_ignored_get(ec))
{
ec->take_focus = !starting;
EC_CHANGED(ec);
}
@ -2019,7 +2022,6 @@ _e_comp_wl_client_cb_new(void *data EINA_UNUSED, E_Client *ec)
if ((!e_client_util_ignored_get(ec)) && (!ec->internal))
{
ec->comp_data->need_reparent = EINA_TRUE;
ec->take_focus = !starting;
}
/* add this client to the hash */