mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
![]() The backend is now mature enough to not explode with multiple windows but the `DisplayServer` API still cannot meet some guarantees required by the various Wayland protocols we use. To meet those guarantees this patch adds three new elements to the DisplayServer API, with relative handling logic for `Window` and `Popup` nodes: - `WINDOW_EVENT_FORCE_CLOSE`, which tells a window to *forcefully* close itself and ensure a proper cleanup of its references, as Wayland enforces this behavior; - `WINDOW_FLAG_POPUP_WM_HINT`, which explicitly declares a window as a "popup", as Wayland enforces this distinction and heuristics are not reliable enough; - `FEATURE_SELF_FITTING_WINDOWS`, which signals that the compositor can fit windows to the screen automatically and that nodes should not do that themselves. Given the size of this feature, this patch also includes various `WaylandThread` reworks and fixes including: - Improvements to frame wait logic, with fixes to various stalls and a configurable (through a `#define`) timeout amount; - A proper implementation of `window_can_draw`; - Complete overhaul of pointer and tablet handling. Now everything is always accumulated and handled only on each respective `frame` event. This makes their logic simpler and more robust. - Better handling of pointer leaving and pointer enter/exit event sending; - Keyboard focus tracking; - More solid window references using IDs instead of raw pointers as windows can be deleted at any time; - More aggressive messaging to window nodes to enforce rects imposed by the compositor. |
||
---|---|---|
.. | ||
doc_classes | ||
export | ||
wayland | ||
x11 | ||
crash_handler_linuxbsd.cpp | ||
crash_handler_linuxbsd.h | ||
dbus-so_wrap.c | ||
dbus-so_wrap.h | ||
detect.py | ||
fontconfig-so_wrap.c | ||
fontconfig-so_wrap.h | ||
freedesktop_portal_desktop.cpp | ||
freedesktop_portal_desktop.h | ||
freedesktop_screensaver.cpp | ||
freedesktop_screensaver.h | ||
godot_linuxbsd.cpp | ||
joypad_linux.cpp | ||
joypad_linux.h | ||
libudev-so_wrap.c | ||
libudev-so_wrap.h | ||
os_linuxbsd.cpp | ||
os_linuxbsd.h | ||
platform_config.h | ||
platform_gl.h | ||
platform_linuxbsd_builders.py | ||
README.md | ||
SCsub | ||
speechd-so_wrap.c | ||
speechd-so_wrap.h | ||
tts_linux.cpp | ||
tts_linux.h | ||
xkbcommon-so_wrap.c | ||
xkbcommon-so_wrap.h |
Linux/*BSD platform port
This folder contains the C++ code for the Linux/*BSD platform port.
See also misc/dist/linux
folder for additional files
used by this platform.
Documentation
- Compiling for Linux/*BSD
- Instructions on building this platform port from source.
- Exporting for Linux/*BSD
- Instructions on using the compiled export templates to export a project.
Artwork license
logo.svg
is derived from the Linux logo:
Permission to use and/or modify this image is granted provided you acknowledge me lewing@isc.tamu.edu and The GIMP if someone asks.