SDL/src
Ethan Lee ed24c3452a wayland: Implement basic window move events via wl_surface_listener.
This unearthed an unspeakably large amount of bugs in the wl_output enumerator,
notably the fact that the wl_output user pointer was to temporary memory!
This was "fixed" in e862856, and was then pointed out as a leak in 4183211,
which was undone in d9ba204. The busted fix was correct that the malloc was an
issue, but wrong about _why_; SDL_AddVideoDisplay copies by value and does not
reuse the pointer, so generally you want your VideoDisplay to be on the stack,
but of course the callbacks don't allow that, so a malloc was a workaround. But
we can do better and just host our temporary display inside WaylandOutputData
because that will be persistent while also not leaking.

Wait, wasn't I talking about move events? Right, that: wl_surface_listener does
at least give us the ability to know what monitor we're on, even though we have
no idea where we are on the monitor. All we need to do is check the wl_output
against the display list and then push a move event that both indicates the
correct display while also not being _too_ much of a lie (but enough of a lie
to where our event doesn't get discarded as "undefined" or whatever). The index
check for the video display is what spawned the great nightmare you see before
you; aside from the bugfix this is actually a really basic patch.
2021-04-16 21:12:02 -07:00
..
atomic Use specific acquire and release variants of InterlockedExchange on ARM 2021-01-03 12:13:40 -06:00
audio AAudio: add bootstrap in SDL_audio.c 2021-04-15 21:00:00 +02:00
core ibus: make sure we don't pass a NULL path string over D-Bus. 2021-04-04 00:29:26 -04:00
cpuinfo Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00
dynapi Squashed commit of the following: 2021-03-29 08:54:41 -07:00
events Fix invalid UTF-8 handling of extra bytes 2021-03-16 18:51:28 -07:00
file Add support for Vita file API in SDL_rwops 2021-03-08 09:07:12 -08:00
filesystem Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
haptic Updated copyright for 2021 2021-01-02 10:25:38 -08:00
hidapi Added support for the Amazon Game Controller to the HIDAPI driver 2021-03-26 11:57:19 -07:00
joystick Cleanup Linux joystick code 2021-04-13 17:00:24 -07:00
libm Updated copyright for 2021 2021-01-02 10:25:38 -08:00
loadso Updated copyright for 2021 2021-01-02 10:25:38 -08:00
locale consistently use TEXT() macro with LoadLibrary() and GetModuleHandle() 2021-01-04 01:23:50 +03:00
main SDL_windows_main.c: use new WIN_StringToUTF8W macro 2021-01-04 10:20:10 +03:00
misc Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
power Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00
render Fixed bug 3829 - Don't FOURCC format for target textures 2021-04-13 14:42:38 +02:00
sensor Deprecate dolcesdk 2021-03-08 09:07:12 -08:00
stdlib fix invalid out of bounds UTF8 handling 2021-03-16 18:51:28 -07:00
test Fix flags check in test code 2021-02-15 08:43:53 -08:00
thread tls: wrap reference to a mutex into an #if !SDL_THREADS_DISABLED test. 2021-04-02 14:36:53 -04:00
timer Formatting 2021-03-08 09:07:12 -08:00
video wayland: Implement basic window move events via wl_surface_listener. 2021-04-16 21:12:02 -07:00
SDL.c linux: (de)initialize d-bus at init and quit. 2021-04-02 14:35:11 -04:00
SDL_assert.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_assert_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_dataqueue.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_error_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints.c Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_hints_c.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_internal.h Updated copyright for 2021 2021-01-02 10:25:38 -08:00
SDL_log.c Initial rebase of xerpi's port 2021-03-08 09:07:12 -08:00