Don't crash when an error pop-up occurs before the compositor is set up.

Reviewers: devilhorns, zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2059
This commit is contained in:
Derek Foreman 2015-02-26 14:43:10 -05:00 committed by Mike Blumenkrantz
parent 5bebba3036
commit dd2058d8a6
1 changed files with 3 additions and 1 deletions

View File

@ -482,10 +482,12 @@ _e_comp_wl_client_focus(E_Client *ec)
wl_array_for_each(k, &e_comp->wl_comp_data->kbd.keys)
e_comp_wl_input_keyboard_state_update(e_comp->wl_comp_data, *k, EINA_TRUE);
ec->comp_data->focus_update = 1;
if (!ec->comp_data->surface) return;
/* send keyboard_enter to all keyboard resources */
wc = wl_resource_get_client(ec->comp_data->surface);
serial = wl_display_next_serial(e_comp->wl_comp_data->wl.disp);
ec->comp_data->focus_update = 1;
EINA_LIST_FOREACH(e_comp->wl_comp_data->kbd.resources, l, res)
{
if (wl_resource_get_client(res) != wc) continue;