SDL/src/events
Sam Lantinga 9493e6974f Validate window pointer before sending events for it
If there are bugs it's possible that the window pointer is invalid. Double check it before sending the application events and potentially dereferencing it.

This showed up in https://github.com/libsdl-org/SDL/issues/10494 as a window getting mouse focus as it was being destroyed and then crashing later when mouse focus was set to a different window.
2024-08-07 12:28:10 -07:00
..
SDL_categories.c Added SDL_GetWindowFromEvent 2024-08-03 02:37:11 +00:00
SDL_categories_c.h Added SDL_GetWindowFromEvent 2024-08-03 02:37:11 +00:00
SDL_clipboardevents.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_clipboardevents_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_displayevents.c Added SDL_EVENT_DISPLAY_DESKTOP_MODE_CHANGED and SDL_EVENT_DISPLAY_CURRENT_MODE_CHANGED 2024-07-12 18:09:14 -07:00
SDL_displayevents_c.h Added SDL_EVENT_DISPLAY_DESKTOP_MODE_CHANGED and SDL_EVENT_DISPLAY_CURRENT_MODE_CHANGED 2024-07-12 18:09:14 -07:00
SDL_dropevents.c Make sure we always copy the data returned using SDL_GetStringRule 2024-07-19 12:22:03 -07:00
SDL_dropevents_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_events.c Added logging for life cycle events 2024-07-30 07:52:13 -07:00
SDL_events_c.h Removed temporary memory from the API 2024-07-26 20:59:14 -07:00
SDL_keyboard.c Renamed SDL_Get/SetRelativeMouseMode to SDL_Get/SetWindowRelativeMouseMode() 2024-08-06 07:59:45 -07:00
SDL_keyboard_c.h The keycode in key events is the base, unmodified, keycode for the current keyboard layout 2024-07-01 13:56:49 -07:00
SDL_keymap.c Putting the simple back into Simple DirectMedia Layer 2024-08-05 21:20:26 -07:00
SDL_keymap_c.h Removed acquire/release of keymaps, which isn't needed internally. 2024-08-05 19:46:45 -07:00
SDL_keysym_to_scancode.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_keysym_to_scancode_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_mouse.c Renamed SDL_Get/SetRelativeMouseMode to SDL_Get/SetWindowRelativeMouseMode() 2024-08-06 07:59:45 -07:00
SDL_mouse_c.h Renamed SDL_Get/SetRelativeMouseMode to SDL_Get/SetWindowRelativeMouseMode() 2024-08-06 07:59:45 -07:00
SDL_pen.c Removed temporary memory from the API 2024-07-26 20:59:14 -07:00
SDL_pen_c.h Cleaned up various type conversion issues 2024-03-07 06:58:43 -08:00
SDL_quit.c Renamed SDL life cycle functions 2024-07-24 05:11:13 -07:00
SDL_scancode_tables.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_scancode_tables_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_touch.c Removed temporary memory from the API 2024-07-26 20:59:14 -07:00
SDL_touch_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
SDL_windowevents.c Validate window pointer before sending events for it 2024-08-07 12:28:10 -07:00
SDL_windowevents_c.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
blank_cursor.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
default_cursor.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
imKStoUCS.c
imKStoUCS.h Remove stray  2023-09-20 08:32:53 -07:00
scancodes_darwin.h Updated copyright for 2024 2024-01-01 13:15:26 -08:00
scancodes_linux.h Updated SDL3 scancode list 2024-06-21 22:06:08 -07:00
scancodes_windows.h Updated SDL3 scancode list 2024-06-21 22:06:08 -07:00
scancodes_xfree86.h Updated SDL3 scancode list 2024-06-21 22:06:08 -07:00