summaryrefslogtreecommitdiff
path: root/src/wayland/meta-wayland-pointer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland/meta-wayland-pointer.c')
-rw-r--r--src/wayland/meta-wayland-pointer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wayland/meta-wayland-pointer.c b/src/wayland/meta-wayland-pointer.c
index 4fb32bbdf..c152bf9e1 100644
--- a/src/wayland/meta-wayland-pointer.c
+++ b/src/wayland/meta-wayland-pointer.c
@@ -400,6 +400,9 @@ meta_wayland_pointer_send_button (MetaWaylandPointer *pointer,
time = clutter_event_get_time (event);
serial = wl_display_next_serial (display);
+ if (event->type == CLUTTER_BUTTON_PRESS)
+ pointer->click_serial = serial;
+
wl_resource_for_each (resource, &pointer->focus_client->pointer_resources)
{
wl_pointer_send_button (resource, serial,