append new keyboard resources for wayland focused-client to the focused list

fixes all cases where applications would fail to receive focus initially
and then be permanently broken
This commit is contained in:
Mike Blumenkrantz 2015-10-21 14:05:02 -04:00
parent a832bb8ded
commit 28b022d033
1 changed files with 3 additions and 0 deletions

View 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);
}