From: Derek Foreman Date: Tue, 28 Jul 2015 21:12:57 +0000 (-0400) Subject: wayland: Only send keyboard modifiers to focused resources X-Git-Tag: upstream/0.20.0~483 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fea72d5fcdd56804b93e4f719aff1ca3a02371ca;p=platform%2Fupstream%2Fenlightenment.git wayland: Only send keyboard modifiers to focused resources Summary: We were sending them to anything that bound a wl_keyboard. Reviewers: zmike Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2879 --- diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c index d3abbca..6acd78d 100644 --- a/src/bin/e_comp_wl_input.c +++ b/src/bin/e_comp_wl_input.c @@ -528,7 +528,7 @@ e_comp_wl_input_keyboard_modifiers_update(void) if (!e_comp->wl_comp_data->kbd.focused) return; serial = wl_display_next_serial(e_comp->wl_comp_data->wl.disp); - EINA_LIST_FOREACH(e_comp->wl_comp_data->kbd.resources, l, res) + EINA_LIST_FOREACH(e_comp->wl_comp_data->kbd.focused, l, res) wl_keyboard_send_modifiers(res, serial, e_comp->wl_comp_data->kbd.mod_depressed, e_comp->wl_comp_data->kbd.mod_latched,