wayland compositor: Remove focus_update from compositor client data

Summary:
The only use for this was sending keyboard enter events on first commit
after a focus during app startup, and this has proven to be unreliable.

NOTE: Focus before an app requests the keyboard global is now broken and
will be fixed in a following patch.

Reviewers: zmike, devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2205
This commit is contained in:
Derek Foreman 2015-03-20 15:13:25 -04:00 committed by Mike Blumenkrantz
parent 24887ddccc
commit def3ac82ae
2 changed files with 0 additions and 8 deletions

View File

@ -428,7 +428,6 @@ _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;
if (!eina_list_count(e_comp->wl_comp_data->kbd.resources)) return;
@ -450,7 +449,6 @@ _e_comp_wl_client_focus(E_Client *ec)
e_comp->wl_comp_data->kbd.mod_locked,
e_comp->wl_comp_data->kbd.mod_group);
ec->comp_data->focus_update = 0;
}
}
@ -498,8 +496,6 @@ _e_comp_wl_evas_cb_focus_out(void *data, Evas *evas EINA_UNUSED, Evas_Object *ob
if (!ec->comp_data->surface) return;
ec->comp_data->focus_update = 0;
if (!eina_list_count(cdata->kbd.resources)) return;
/* send keyboard_leave to all keyboard resources */
@ -2699,9 +2695,6 @@ e_comp_wl_surface_commit(E_Client *ec)
}
}
}
if (ec->comp_data->focus_update)
_e_comp_wl_client_focus(ec);
return EINA_TRUE;
}

View File

@ -262,7 +262,6 @@ struct _E_Comp_Wl_Client_Data
Eina_Bool first_damage : 1;
Eina_Bool set_win_type : 1;
Eina_Bool frame_update : 1;
Eina_Bool focus_update : 1;
};
struct _E_Comp_Wl_Output