Go to file
Frank Praznik ad813a65e7 x11: Fix initial window positioning
Some window managers can send garbage values during the initial mapping of a window, and need the position set again after mapping to ensure proper placement. Position requests sent before mapping can otherwise end up ignored. Ignore initial configure events when initially showing the window, and make sure that the position is set after the window is mapped, either when the window borders appear, or after the initial configure events in the case of borderless windows.

This also eliminates sending excessive/redundant move requests, which can cause strange behavior on some window managers, particularly if done before the window is actually mapped.

Fixes cases of incorrect initial window placement on GNOME + XWayland.
2024-04-14 12:19:00 -04:00
.github ci: Add iOS and tvOS CMake GitHub Actions checks (#9465) 2024-04-08 19:18:28 +02:00
VisualC File dialog improvements 2024-04-04 22:07:14 -07:00
VisualC-GDK File dialog improvements 2024-04-04 22:07:14 -07:00
VisualC-WinRT File dialog improvements 2024-04-04 22:07:14 -07:00
Xcode File dialog improvements 2024-04-04 22:07:14 -07:00
android-project Updated to version 3.1.1 for the preview release 2024-04-01 17:03:46 -07:00
build-scripts wikiheaders: Allow parts of the headers to be ignored. 2024-04-13 22:57:23 -04:00
cmake cmake: switch iOS and watchOS 2024-04-08 19:25:38 +02:00
docs docs: Added some notes about iOS and the main callbacks. 2024-04-13 15:14:32 -04:00
include Sync SDL3 wiki -> header 2024-04-14 05:50:22 +00:00
mingw/pkg-support mingw: add pkg-support files (INSTALL.txt and Makefile) 2024-03-23 21:41:20 +01:00
src x11: Fix initial window positioning 2024-04-14 12:19:00 -04:00
test joystick: SDL_VirtualJoystickDesc no longer takes a struct version. 2024-04-13 14:16:12 -04:00
wayland-protocols wayland: Update tablet-v2 protocol file to stable version 2024-04-11 18:34:02 -04:00
.clang-format Add 'wl_list_for_each_safe' to the clang-format macro list 2024-03-14 10:22:23 -04:00
.clang-tidy Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked 2023-08-05 14:14:45 -04:00
.editorconfig Fixed formatting for Haiku cc files 2023-01-25 03:03:41 -08:00
.gitignore GDK: Remove old shader sources, unify shader compilation .bats 2024-03-02 10:30:29 -08:00
.wikiheaders-options wikiheaders.pl: Report a function's header file name. 2024-03-31 12:56:00 -04:00
Android.mk Add time and realtime clock functions 2024-03-19 10:57:36 -07:00
BUGS.txt Cleaned up a few more Bugzilla mentions. 2021-02-12 14:46:49 -05:00
CMakeLists.txt ci: Add iOS and tvOS CMake GitHub Actions checks (#9465) 2024-04-08 19:18:28 +02:00
CREDITS.md docs: Moved CREDITS and INSTALL to markdown format. 2023-11-29 12:31:27 -05:00
INSTALL.md Updated INSTALL.md 2024-04-10 09:18:42 -04:00
LICENSE.txt Updated copyright for 2024 2024-01-01 13:15:26 -08:00
README-SDL.txt More HTTPS changes in the documentation. 2017-02-16 16:52:03 -05:00
README.md Tweaking documentation for the SDL 3.0 preview release 2024-03-24 06:16:02 -07:00
WhatsNew.txt Tweaking documentation for the SDL 3.0 preview release 2024-03-24 06:16:02 -07:00

README.md

Simple DirectMedia Layer (SDL) Version 3.0

https://www.libsdl.org/

Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

More extensive documentation is available in the docs directory, starting with README.md. If you are migrating to SDL 3.0 from SDL 2.0, the changes are extensively documented in README-migration.md.

Enjoy!

Sam Lantinga (slouken@libsdl.org)