[gtk/wip/chergert/for-4-6: 44/56] macos: queue all pending events
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/for-4-6: 44/56] macos: queue all pending events
- Date: Wed, 16 Mar 2022 19:25:46 +0000 (UTC)
commit 5efa8071d6f372e29f3df9b43a4a8bf990b7bb53
Author: Christian Hergert <christian hergert me>
Date: Thu Mar 10 03:20:07 2022 -0800
macos: queue all pending events
Rather than process these a single event at a time, queue all of the
outstanding events from the NSEvent queue.
gdk/macos/gdkmacosdisplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/macos/gdkmacosdisplay.c b/gdk/macos/gdkmacosdisplay.c
index 9fbfac49ed..d1398335fd 100644
--- a/gdk/macos/gdkmacosdisplay.c
+++ b/gdk/macos/gdkmacosdisplay.c
@@ -310,7 +310,7 @@ gdk_macos_display_queue_events (GdkDisplay *display)
g_return_if_fail (GDK_IS_MACOS_DISPLAY (self));
- if ((nsevent = _gdk_macos_event_source_get_pending ()))
+ while ((nsevent = _gdk_macos_event_source_get_pending ()))
{
GdkEvent *event = _gdk_macos_display_translate (self, nsevent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]