From 2b6fb005a868e783a47cf3b5eac1de09e57c17ea 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 39b16c3319..5644205833 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));