Mon, 25 Jun 2018 01:57:28 -0400gles2: Whoops, overzealous copy/paste on my part. :)
Ryan C. Gordon <icculus@icculus.org> [Mon, 25 Jun 2018 01:57:28 -0400] rev 12034
gles2: Whoops, overzealous copy/paste on my part. :)

Sun, 24 Jun 2018 22:42:36 -0700wayland: Implemented xdg-wm-base support.
Ryan C. Gordon <icculus@icculus.org> [Sun, 24 Jun 2018 22:42:36 -0700] rev 12033
wayland: Implemented xdg-wm-base support.

This is just in parity with the existing zxdg-shell-unstable-v6 code. Making
the Wayland target robust (and uh, with title bars) is going to take a lot
of work on top of this.

Sun, 24 Jun 2018 15:21:01 -0400android: Android.mk should only preserve debug symbols in debug builds.
Ryan C. Gordon <icculus@icculus.org> [Sun, 24 Jun 2018 15:21:01 -0400] rev 12032
android: Android.mk should only preserve debug symbols in debug builds.

Fixes Bugzilla #4111.

Fri, 04 May 2018 21:21:32 -0400alsa: avoid hardware parameters with an excessive number of periods.
Anthony Pesch <inolen@gmail.com> [Fri, 04 May 2018 21:21:32 -0400] rev 12031
alsa: avoid hardware parameters with an excessive number of periods.

The previous code attempted to use set_buffer_size / set_period_size
discretely, favoring the parameters which generated a buffer size that was
exactly 2x the requested buffer size. This solution ultimately prioritizes
only the buffer size, which comes at a large performance cost on some machines
where this results in an excessive number of periods. In my case, for a 4096
sample buffer, this configured the device to use 37 periods with a period size
of 221 samples and a buffer size of 8192 samples. With 37 periods, the SDL
Audio thread was consuming 25% of the CPU.

This code has been refactored to use set_period_size and set_buffer_size
together. set_period_size is called first to attempt to set the period to
exactly match the requested buffer size, and set_buffer_size is called second
to further refine the parameters to attempt to use only 2 periods. The
fundamental change here is that the period size / count won't go to extreme
values if the buffer size can't be exactly matched, the buffer size should
instead just increase to the next closest multiple of the target period size
that is supported. After changing this, for a 4096 sample buffer, the device
is configured to use 3 periods with a period size of 4096 samples and a buffer
size of 12288 samples. With only 3 periods, the SDL Audio thread doesn't even
show up when profiling.

Fixes Bugzilla #4156.

Sun, 24 Jun 2018 15:12:18 -0400cmake: Look in popular places for X11 headers, export this info properly.
Ryan C. Gordon <icculus@icculus.org> [Sun, 24 Jun 2018 15:12:18 -0400] rev 12030
cmake: Look in popular places for X11 headers, export this info properly.

Fixes CMake not being able to find X11 on FreeBSD (which generally has the
headers in /usr/local/include/X11).

List of other popular places borrowed from CMake's FindX11 module.

This worked on the configure script because of magic in the AC_PATH_X macro.

Fixes Bugzilla #4815.

Sun, 24 Jun 2018 13:57:22 -0400x11: Normalize x11xinput2 touch x to be 1.0 at width (thanks, Zach!).
Ryan C. Gordon <icculus@icculus.org> [Sun, 24 Jun 2018 13:57:22 -0400] rev 12029
x11: Normalize x11xinput2 touch x to be 1.0 at width (thanks, Zach!).

"Applications (such as SDL's testgesture) do "event.tfinger.x * window_width"
to find window coord. Currently the X11 XInput2 backend expects application
to do "event.tfinger.x * (window_width-1)" instead.

X11 XInput2 touch events are normalized so x is 1.0 at "width - 1" but other
SDL backends appear to have x be 1.0 at "width". Same issue for touch event
y with regards to height."

Fixes Bugzilla #4183.

Thu, 14 Jun 2018 06:12:12 +0000egl: Don't change context when deleting current.
Tomeu Vizoso <tomeu.vizoso@collabora.com> [Thu, 14 Jun 2018 06:12:12 +0000] rev 12028
egl: Don't change context when deleting current.

If we change the current context behind the app's back, those tracking
the current context to minimize context changes are going to get
confused.

This brings the EGL backend in line with the GLX one.

Fixes Bugzilla #4199.

Sun, 24 Jun 2018 12:16:58 -0400Fixed some possible malloc(0) calls reported by static analysis.
Ryan C. Gordon <icculus@icculus.org> [Sun, 24 Jun 2018 12:16:58 -0400] rev 12027
Fixed some possible malloc(0) calls reported by static analysis.

Fri, 22 Jun 2018 21:03:40 +0300SDLMain.m: replace CPS* stuff with activateIgnoringOtherApps (bug #4114) SDL-1.2
Ozkan Sezer <sezeroz@gmail.com> [Fri, 22 Jun 2018 21:03:40 +0300] rev 12026
SDLMain.m: replace CPS* stuff with activateIgnoringOtherApps (bug #4114)

CPS stuff are deprecated and emit warnings at runtime, e.g.:

warning: CPSGetCurrentProcess(): This call is deprecated and should not be called anymore
warning: CPSSetForegroundOperationState() (as above)
warning: capture_display; Captured mirror master 0x350000c1 (unit 1) on behalf of slave 0x042716c0 (unit 0)

http://lists.libsdl.org/pipermail/sdl-libsdl.org/2006-April/055749.html
suggests doing something like:

ProcessSerialNumber psn = { 0, kCurrentProcess};
TransformProcessType (&psn, kProcessTransformToForegroundApplication);
SetFrontProcess (&psn);

And SetFrontProcess() is deprecated in 10.9. Processes.h suggests
[[NSApplication sharedApplication] activateIgnoringOtherApps: YES]
to make one's own application frontmost.

Mon, 18 Jun 2018 13:14:04 -0700Use a blank cursor instead of PointerIcon.TYPE_NULL since that shows the default cursor on Samsung DeX
Sam Lantinga <slouken@libsdl.org> [Mon, 18 Jun 2018 13:14:04 -0700] rev 12025
Use a blank cursor instead of PointerIcon.TYPE_NULL since that shows the default cursor on Samsung DeX