SDL/include
Ryan C. Gordon c54c16d353
wayland: don't hang in SDL_GL_SwapBuffers if the compositor is ghosting us.
If you hide a window on Mutter, for example, the compositor never requests
new frames, which will cause Mesa to block forever in eglSwapBuffers to
satisfy the swap interval.

We now always set the swap interval to 0 and manage this ourselves, handing
the frame to Wayland when it requests a new one, and timing out at 10fps just
to keep apps moving if the compositor wants no frames at all.

My understanding is that other protocols are coming that might improve upon
this solution, but for now it solves the total hang.

Fixes #4335.
2021-04-30 13:20:35 -04:00
..
SDL.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_assert.h headers: a few minor documentation corrections. 2021-03-23 15:36:26 -04:00
SDL_atomic.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_audio.h audio: make SDL_OpenAudioDevice declaration look less squashed. 2021-04-03 13:24:10 -04:00
SDL_bits.h simplify Watcom implementation of SDL_MostSignificantBitIndex32() 2021-01-04 03:00:10 +03:00
SDL_blendmode.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_clipboard.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_config.h Vita port builds with cmake 2021-03-08 09:07:12 -08:00
SDL_config.h.cmake Remove gles2 vita render 2021-04-24 14:13:09 -07:00
SDL_config.h.in add missing PIPEWIRE defines to SDL_config.h.in 2021-03-01 15:11:50 +03:00
SDL_config_android.h AAudio: add compilation to Android.mk, but not activated in SDL_config_android.h 2021-04-15 21:03:10 +02:00
SDL_config_iphoneos.h Removed support for clock_gettime_nsec_np() 2021-02-10 10:22:19 -05:00
SDL_config_macosx.h Removed support for clock_gettime_nsec_np() 2021-02-10 10:22:19 -05:00
SDL_config_minimal.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_config_os2.h minor updates to libc function checks 2021-02-10 10:22:19 -05:00
SDL_config_pandora.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_config_psp.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_config_windows.h SDL_config_windows.h: added clang to list of toolchains having stdint.h 2021-03-04 18:27:37 +03:00
SDL_config_winrt.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_config_wiz.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_copying.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_cpuinfo.h * Support for intrinsics in MSW + Clang scenario. 2021-04-09 22:28:07 -07:00
SDL_egl.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_endian.h * Support for intrinsics in MSW + Clang scenario. 2021-04-09 22:28:07 -07:00
SDL_error.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_events.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_filesystem.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_gamecontroller.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_gesture.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_haptic.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_hints.h hints: SDL_HINT_TIMER_RESOLUTION applies to all versions of Windows. 2021-04-04 00:24:40 -04:00
SDL_joystick.h Fixed header documentation errors 2021-03-26 14:34:58 -07:00
SDL_keyboard.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_keycode.h fix SDLK_DELETE after commit 2f5beac190 2021-03-06 11:28:04 +03:00
SDL_loadso.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_locale.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_log.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_main.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_messagebox.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_metal.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_misc.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_mouse.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_mutex.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_name.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_opengl.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_opengl_glext.h Don't have Windows headers define min/max, in case they're defined by application code 2019-09-11 15:08:37 -07:00
SDL_opengles.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_opengles2.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_opengles2_gl2.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_gl2ext.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_gl2platform.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_opengles2_khrplatform.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00
SDL_pixels.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_platform.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_power.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_quit.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_rect.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_render.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_revision.h The revision defaults to the empty string 2021-02-12 08:54:08 -08:00
SDL_rwops.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_scancode.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_sensor.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_shape.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_stdinc.h VITASDK compatibility 2021-03-08 09:07:12 -08:00
SDL_surface.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_system.h headers: Fix up bullet lists, now that wikiheaders.pl can handle them. 2021-03-24 10:48:45 -04:00
SDL_syswm.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_test.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_assert.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_common.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_compare.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_crc32.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_font.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_fuzzer.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_harness.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_images.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_log.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_md5.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_memory.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_test_random.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_thread.h Squashed commit of the following: 2021-03-29 08:54:41 -07:00
SDL_timer.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_touch.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_types.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_version.h First shot at merging the wiki documentation into the headers. 2021-03-21 14:19:53 -04:00
SDL_video.h wayland: don't hang in SDL_GL_SwapBuffers if the compositor is ghosting us. 2021-04-30 13:20:35 -04:00
SDL_vulkan.h Fixed header documentation errors 2021-03-26 14:34:58 -07:00
begin_code.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
close_code.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00