From 28b022d033ecf93cd4efd092055c05d135d1a29b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 21 Oct 2015 14:05:02 -0400 Subject: [PATCH] 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 --- src/bin/e_comp_wl_input.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c index 6df3fa6..7aa0dcd 100644 --- a/src/bin/e_comp_wl_input.c +++ b/src/bin/e_comp_wl_input.c @@ -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); } -- 2.7.4