From: Chris Michael Date: Tue, 14 Jul 2015 14:18:19 +0000 (-0400) Subject: e-comp-wl: Update keyboard key state regardless of client focus or not X-Git-Tag: upstream/0.20.0~575 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74e96f382695d31303accd1605403d384cf57b2b;p=platform%2Fupstream%2Fenlightenment.git e-comp-wl: Update keyboard key state regardless of client focus or not Key state updates need to be consistent. As we update the key state on key up regardless of client focus, then we should be doing the same in the key_down event handler so that key state remains consistent. Signed-off-by: Chris Michael --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 0f92fd2..56881df 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -879,11 +879,11 @@ _e_comp_wl_cb_key_down(void *event) } *k = keycode; + /* update modifier state */ + e_comp_wl_input_keyboard_state_update(keycode, EINA_TRUE); + if ((ec = e_client_focused_get())) { - /* update modifier state */ - e_comp_wl_input_keyboard_state_update(keycode, EINA_TRUE); - if (ec->comp_data->surface && (!e_client_action_get()) && (!e_comp->input_key_grabs)) { struct wl_client *wc;