[gtk: 1/4] GdkWin32: Report serial for events
- From: Luca Bacci <lbacci src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/4] GdkWin32: Report serial for events
- Date: Fri, 8 Apr 2022 08:31:15 +0000 (UTC)
commit 2b6fb005a868e783a47cf3b5eac1de09e57c17ea
Author: Luca Bacci <luca bacci982 gmail com>
Date: Wed Apr 6 19:45:50 2022 +0200
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]