append new keyboard resources for wayland focused-client to the focused list
authorMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 21 Oct 2015 18:05:02 +0000 (14:05 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Wed, 21 Oct 2015 18:06:31 +0000 (14:06 -0400)
fixes all cases where applications would fail to receive focus initially
and then be permanently broken

src/bin/e_comp_wl_input.c

index 6df3fa6..7aa0dcd 100644 (file)
@@ -194,6 +194,9 @@ _e_comp_wl_input_cb_keyboard_get(struct wl_client *client, struct wl_resource *r
    focused = e_client_focused_get();
    if (!focused) return;
 
+   if (client != wl_resource_get_client(focused->comp_data->surface)) return;
+   e_comp_wl->kbd.focused = eina_list_append(e_comp_wl->kbd.focused, res);
+
    e_comp_wl_input_keyboard_enter_send(focused);
 }