From: Enlightenment S. <no-...@en...> - 2012-06-06 12:56:07
|
Log: Ecore_Wayland: Use the input's pointer_enter_serial instead of timestamp for setting pointer image. Author: devilhorns Date: 2012-06-06 05:55:53 -0700 (Wed, 06 Jun 2012) New Revision: 71748 Trac: http://trac.enlightenment.org/e/changeset/71748 Modified: trunk/ecore/src/lib/ecore_wayland/ecore_wl_input.c Modified: trunk/ecore/src/lib/ecore_wayland/ecore_wl_input.c =================================================================== --- trunk/ecore/src/lib/ecore_wayland/ecore_wl_input.c 2012-06-06 11:41:56 UTC (rev 71747) +++ trunk/ecore/src/lib/ecore_wayland/ecore_wl_input.c 2012-06-06 12:55:53 UTC (rev 71748) @@ -150,7 +150,8 @@ LOGFN(__FILE__, __LINE__, __FUNCTION__); if (input) - wl_pointer_attach(input->pointer, input->timestamp, buffer, hot_x, hot_y); + wl_pointer_attach(input->pointer, input->pointer_enter_serial, + buffer, hot_x, hot_y); } EAPI void @@ -481,8 +482,10 @@ if ((!win) || (win->keyboard_device != input)) return; num = xkb_key_get_syms(input->display->xkb.state, code, &syms); + xkb_state_update_key(input->display->xkb.state, code, (state ? XKB_KEY_DOWN : XKB_KEY_UP)); + mask = xkb_state_serialize_mods(input->display->xkb.state, (XKB_STATE_DEPRESSED | XKB_STATE_LATCHED)); input->modifiers = 0; |