summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-25 15:24:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-03-25 15:24:47 -0400
commit7aed044cb6f8ec2f1f028cdafd8691c47056d582 (patch)
treec67844a3c0385110091d2083fddd7ae7206346b2
parente1fde3e2cd98f96e69f4c288d721078151d5797b (diff)
downloadgtk+-7aed044cb6f8ec2f1f028cdafd8691c47056d582.tar.gz
surface: Mark synthetic motion events as such
This will let us discriminate them from actual device movement when necessary.
-rw-r--r--gdk/gdksurface.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index 6ad438093a..bd6ba6ff3d 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -2455,13 +2455,13 @@ gdk_surface_ensure_motion (GdkSurface *surface)
if (!gdk_surface_get_device_position (surface, device, &x, &y, &state))
return;
- event = gdk_motion_event_new (surface,
- device,
- NULL,
- GDK_CURRENT_TIME,
- state,
- x, y,
- NULL);
+ event = gdk_synthetic_motion_event_new (surface,
+ device,
+ NULL,
+ GDK_CURRENT_TIME,
+ state,
+ x, y,
+ NULL);
gdk_surface_handle_event (event);
gdk_event_unref (event);