From c0a60ece97a3052cf4d440924669920f3b594952 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Wed, 6 Apr 2022 19:45:50 +0200 Subject: [PATCH] GdkWin32: Report serial for events --- gdk/win32/gdkevents-win32.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index debc66e5d7..3f71e2a8f4 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -873,6 +873,7 @@ _gdk_win32_append_event (GdkEvent *event) { GdkDisplay *display; GList *link; + gulong serial; display = gdk_display_get_default (); @@ -880,8 +881,9 @@ _gdk_win32_append_event (GdkEvent *event) #if 1 link = _gdk_event_queue_append (display, event); GDK_NOTE (EVENTS, _gdk_win32_print_event (event)); + serial = _gdk_display_get_next_serial (display); /* event morphing, the passed in may not be valid afterwards */ - _gdk_windowing_got_event (display, link, event, 0); + _gdk_windowing_got_event (display, link, event, serial); #else _gdk_event_queue_append (display, event); GDK_NOTE (EVENTS, _gdk_win32_print_event (event));