aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_wl2/ecore_wl2_input.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-09-30 12:03:29 -0400
committerChris Michael <cp.michael@samsung.com>2015-12-03 12:02:40 -0500
commit324a7e545a6efc4450b6987d725727664a967aeb (patch)
tree7dd0753fdc1fe143d44992eff85eb8ea53490d81 /src/lib/ecore_wl2/ecore_wl2_input.c
parentecore-wl2: Add event type and structure for sending window configure (diff)
downloadefl-324a7e545a6efc4450b6987d725727664a967aeb.tar.gz
ecore-wl2: Update input serial when we get a mouse button event
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2_input.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c
index f52c1686d6..3e5ca9539a 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -542,13 +542,15 @@ _pointer_cb_motion(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned
}
static void
-_pointer_cb_button(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned int serial EINA_UNUSED, unsigned int timestamp, unsigned int button, unsigned int state)
+_pointer_cb_button(void *data, struct wl_pointer *pointer EINA_UNUSED, unsigned int serial, unsigned int timestamp, unsigned int button, unsigned int state)
{
Ecore_Wl2_Input *input;
input = data;
if (!input) return;
+ input->display->serial = serial;
+
if (state == WL_POINTER_BUTTON_STATE_PRESSED)
{
if ((input->focus.pointer) && (!input->grab.window))