SDL/src/events
Frank Praznik 44536b7537 Add and event and flag to report when a window has been occluded
Adds the SDL_EVENT_WINDOW_OCCLUDED events and the window flag SDL_WINDOW_OCCLUDED to report when the window occlusion state has changed, so that the application can take appropriate measures, as it may wish to suspend drawing, throttle, or otherwise behave in a more energy efficient manner when the window is not visible. When the window is no longer occluded, the SDL_EVENT_WINDOW_EXPOSED event is sent and the occlusion flag is cleared.

This is handled on macOS via the window occlusion state event (available as of 10.9), and via the xdg-shell protocol on Wayland (version 6, wayland-protocols 1.32, passed through in libdecor 0.1.2).
2023-07-18 16:42:05 -04: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 Removed SDL_EVENT_CLIPBOARD_CANCELLED in favor of the cleanup callback 2023-07-05 20:06:59 -07:00
SDL_clipboardevents_c.h Removed SDL_EVENT_CLIPBOARD_CANCELLED in favor of the cleanup callback 2023-07-05 20:06:59 -07:00
SDL_displayevents.c Added the concept of display natural orientation 2023-06-17 07:42:16 -07: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 Add and event and flag to report when a window has been occluded 2023-07-18 16:42:05 -04: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 Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07: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 Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_keysym_to_scancode_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_mouse.c On Windows the mouse speed is affected by the content scale 2023-06-29 14:38:26 -07: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 Updated source to match SDL function prototype style 2023-05-23 11:29:41 -07:00
SDL_touch_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00
SDL_windowevents.c Add and event and flag to report when a window has been occluded 2023-07-18 16:42:05 -04:00
SDL_windowevents_c.h Updated copyright for 2023 2023-01-09 09:41:41 -08:00