wayland: Only send keyboard modifiers to focused resources
authorDerek Foreman <derekf@osg.samsung.com>
Tue, 28 Jul 2015 21:12:57 +0000 (17:12 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Tue, 28 Jul 2015 21:12:57 +0000 (17:12 -0400)
Summary: We were sending them to anything that bound a wl_keyboard.

Reviewers: zmike

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D2879

src/bin/e_comp_wl_input.c

index d3abbca..6acd78d 100644 (file)
@@ -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,