forked from enlightenment/enlightenment
Stop sending key up/down events on focus change under wayland
We shouldn't be doing this, but there's a collective memory that this was put in place to fix stuck modifier bugs. If we run into stuck modifiers again because of this patch, then we should be fixing them in a different way. If anyone bisects to this point, I apologize - assign me a ticket.
This commit is contained in:
parent
08ee9293df
commit
41e60d251e
|
@ -608,10 +608,6 @@ _e_comp_wl_evas_cb_focus_in_timer(E_Client *ec)
|
||||||
e_comp_wl_input_keyboard_modifiers_update();
|
e_comp_wl_input_keyboard_modifiers_update();
|
||||||
serial = wl_display_next_serial(e_comp_wl->wl.disp);
|
serial = wl_display_next_serial(e_comp_wl->wl.disp);
|
||||||
t = ecore_time_unix_get();
|
t = ecore_time_unix_get();
|
||||||
EINA_LIST_FOREACH(e_comp_wl->kbd.focused, l, res)
|
|
||||||
wl_array_for_each(k, &e_comp_wl->kbd.keys)
|
|
||||||
wl_keyboard_send_key(res, serial, t,
|
|
||||||
*k, WL_KEYBOARD_KEY_STATE_PRESSED);
|
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -703,9 +699,6 @@ _e_comp_wl_keyboard_leave(E_Client *ec)
|
||||||
t = ecore_time_unix_get();
|
t = ecore_time_unix_get();
|
||||||
EINA_LIST_FOREACH_SAFE(e_comp_wl->kbd.focused, l, ll, res)
|
EINA_LIST_FOREACH_SAFE(e_comp_wl->kbd.focused, l, ll, res)
|
||||||
{
|
{
|
||||||
wl_array_for_each(k, &e_comp_wl->kbd.keys)
|
|
||||||
wl_keyboard_send_key(res, serial, t,
|
|
||||||
*k, WL_KEYBOARD_KEY_STATE_RELEASED);
|
|
||||||
if (ec->comp_data->surface)
|
if (ec->comp_data->surface)
|
||||||
wl_keyboard_send_leave(res, serial, ec->comp_data->surface);
|
wl_keyboard_send_leave(res, serial, ec->comp_data->surface);
|
||||||
e_comp_wl->kbd.focused = eina_list_remove_list(e_comp_wl->kbd.focused, l);
|
e_comp_wl->kbd.focused = eina_list_remove_list(e_comp_wl->kbd.focused, l);
|
||||||
|
|
Loading…
Reference in New Issue