SDL/src/events
Sam Lantinga f005106d1b Make sure the sentinel is at the end of the current event pump cycle
If we're waiting, it's possible to not get any events, then add the sentinel, then pump again and then add another sentinel. We want to make sure we only have one sentinel and that it's at the end of the currently pumped events.

Testing:
* Verified test case in https://github.com/libsdl-org/SDL/issues/6539
* Verified test case in https://github.com/libsdl-org/SDL/issues/5350

Fixes https://github.com/libsdl-org/SDL/issues/6539

(cherry picked from commit 00b87f1ded)
2023-05-20 10:37:40 -07:00
..
blank_cursor.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
default_cursor.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
imKStoUCS.c Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
imKStoUCS.h wayland: Reuse KeySymToUcs4 to replicate X11 keymap behavior 2021-09-23 11:50:47 -07:00
scancodes_ascii.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_darwin.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_linux.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_windows.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
scancodes_xfree86.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_clipboardevents.c wayland: Add support for images in clipboard. 2023-05-12 07:54:56 -07:00
SDL_clipboardevents_c.h wayland: Add support for images in clipboard. 2023-05-12 07:54:56 -07:00
SDL_displayevents.c Added SDL_EVENT_DISPLAY_SCALE_CHANGED 2023-03-03 11:16:31 -08:00
SDL_displayevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_dropevents.c Add Drag and drop position, for x11, wayland and MACOSX 2023-03-06 08:44:05 -08:00
SDL_dropevents_c.h Add Drag and drop position, for x11, wayland and MACOSX 2023-03-06 08:44:05 -08:00
SDL_events.c Make sure the sentinel is at the end of the current event pump cycle 2023-05-20 10:37:40 -07:00
SDL_events_c.h Added SDL_GetSystemTheme() to return whether the system is using a dark or light color theme, and SDL_EVENT_SYSTEM_THEME_CHANGED is sent when this changes 2023-03-09 03:25:20 -08:00
SDL_keyboard.c Fixed build 2023-03-03 09:49:48 -08:00
SDL_keyboard_c.h Make sure the window is valid in SDL_SetKeyboardFocus() 2023-03-03 09:09:11 -08:00
SDL_keysym_to_scancode.c Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
SDL_keysym_to_scancode_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_mouse.c Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_mouse_c.h Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_quit.c Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
SDL_scancode_tables.c Fix uses of undefined macro identifiers (-Wundef) 2023-03-29 21:49:01 +00:00
SDL_scancode_tables_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_touch.c Use #ifdef/#ifndef instead of #if defined/#if \!defined 2023-03-30 21:35:01 +00:00
SDL_touch_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_windowevents.c events: Emit an event when a window is destroyed 2023-04-28 15:09:47 -04:00
SDL_windowevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00