mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-02 12:04:41 +00:00
370e9407b585466b5ac54cb5240d5eb1e11fc80b
As in the previous commit, loading GTK while setuid or setgid would result in the process exiting. This is equally true if it's loaded indirectly, for a libdecor plugin. libdecor doesn't currently have any API by which it can be asked to avoid specific plugins, but its GTK plugin declines to initialize if it detects a non-main thread (because GTK documents that it must only be used from the main thread), resulting in libdecor falling back to the lower-priority Cairo plugin. We can make use of this by intentionally initializing libdecor on another thread if we have been asked to avoid GTK. This is a bit of a hack, but at worst it should be harmless. Resolves: https://github.com/libsdl-org/sdl2-compat/issues/564 Signed-off-by: Simon McVittie <smcv@debian.org>
Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.
You can find the latest release and additional information at: https://www.libsdl.org/
Installation instructions and a quick introduction is available in INSTALL.md
This library is distributed under the terms of the zlib license, available in LICENSE.txt.
Enjoy!
Sam Lantinga (slouken@libsdl.org)
Languages
C
85.7%
C++
6.6%
Objective-C
3.3%
CMake
1.7%
Perl
0.7%
Other
1.7%