summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #89328 from Riteo/wayland-cursor-frame-optRémi Verschelde2024-03-091-7/+14
|\ | | | | | | Wayland: Setup next cursor frame callback only if animated
| * Wayland: Setup next cursor frame callback only if animatedRiteo2024-03-091-7/+14
| | | | | | | | | | | | | | | | Before, the cursor kept updating for no good reason really. It's also a bit neater and it ever-so-slightly makes `WAYLAND_DEBUG` logs easier to read, although they're still spammed by the window's frame logic (which is needed).
* | Merge pull request #89307 from alesliehughes/wayland_usageRémi Verschelde2024-03-091-4/+24
|\ \ | | | | | | | | | Wayland: Stop possible Null pointer dereferences
| * | wayland: Stop possible Null pointer dereferencesAlistair Leslie-Hughes2024-03-091-4/+24
| |/
* / wayland: Stop unreachable warningAlistair Leslie-Hughes2024-03-091-2/+2
|/
* Merge pull request #87452 from bruvzg/native_menuRémi Verschelde2024-03-064-0/+27
|\ | | | | | | Move `global_menu_*` methods to a separate `NativeMenu` class.
| * Move `global_menu_*` methods to a separate `NativeMenu` class.bruvzg2024-03-044-0/+27
| |
* | Merge pull request #88520 from LinuxUserGD/execinfoRémi Verschelde2024-03-052-8/+14
|\ \ | | | | | | | | | Disable the crash handler if `execinfo=no` scons option is set
| * | Disable the crash handler if execinfo=no scons option is setLinuxUserGD2024-02-182-8/+14
| | |
* | | Merge pull request #89178 from Riteo/gotta-have-them-allRémi Verschelde2024-03-051-3/+14
|\ \ \ | |_|/ |/| | | | | Wayland: Properly report all used features
| * | Wayland: Properly report all used featuresRiteo2024-03-041-3/+14
| | | | | | | | | | | | Oops, missed a few.
* | | [Wayland] Fix tilt handlingA Thousand Ships2024-03-032-3/+2
|/ /
* | Merge pull request #88970 from KoBeWi/ImageCursor2DRémi Verschelde2024-02-293-67/+8
|\ \ | | | | | | | | | Improve `cursor_set_custom_image()` method
| * | Improve cursor_set_custom_image() methodkobewi2024-02-283-67/+8
| | |
* | | Merge pull request #88959 from akien-mga/pre-commit-clang-17.0.6-black-24.2.0Rémi Verschelde2024-02-291-0/+1
|\ \ \ | | | | | | | | | | | | Pre-commit: Update to clang-format 17.0.6 and black 24.2.0
| * | | Pre-commit: Update to clang-format 17.0.6 and black 24.2.0Rémi Verschelde2024-02-281-0/+1
| |/ /
* / / Wayland: Restore tablet support and handle multiple toolsRiteo2024-02-282-121/+151
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | This code was already partially there, although heavily incomplete and nowadays commented out. It got broken after the `WaylandThread` refactor and I didn't bother to bring it over, preferring to `#if 0` it into oblivion for the time being as I don't have a tablet/pen which support an eraser and tilt reporting. This commit brings it back and adds proper multi-tool support (needed for eraser detection) thanks to winston-yallow, who could test this code with their more capable tablet.
* | os_linuxbsd.cpp: include `servers/rendering_server.h`LinuxUserGD2024-02-191-0/+1
| |
* | Merge pull request #88245 from shana/simplify-mono-support-detectionRémi Verschelde2024-02-191-0/+1
|\ \ | |/ |/| | | C#: Let platforms signal if they support the mono module or not
| * C#: Let platforms signal if they support it or notAndreia Gaita2024-02-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Instead of hardcoding platform names that support C#, let platforms set a flag indicating if they support it. All public platforms except web already support it, and it's a pain to maintain a patch for this list just to add additional names of proprietary console platforms. This makes adding new platforms or variants or existing platforms much easier, as the platform can signal what it supports/doesn't support directly, and we can avoid harcoding platform names.
* | Merge pull request #88325 from akien-mga/texture-formatsRémi Verschelde2024-02-171-10/+4
|\ \ | | | | | | | | | Export: Unify settings for PC texture formats, removed obsoleted ETC feature
| * | Export: Unify settings for PC texture formatsRémi Verschelde2024-02-141-7/+4
| | | | | | | | | | | | S3TC and BPTC should always be used together, and likewise for ETC2 and ASTC.
| * | Remove code relative to obsoleted ETC texture formatRémi Verschelde2024-02-141-3/+0
| | | | | | | | | | | | Co-authored-by: BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>
* | | Wayland: suspend window after frame timeout or suspend stateRiteo2024-02-156-19/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a pretty popular approach that took a while for me to wrap my head around and which only recently got "official" support through an update (xdg_shell version 6), so I think that this is all-in-all a better option than the overkill 2000Hz ticking we have now :P Basically, we wait for a frame event and, if either too much time passes or we get the new `suspended` state, we consider the window as "hidden" and stop drawing, ticking by the low usage rate. This should work great for KDE and Mutter, which support the new state, but not yet for sway, which is still stuck at a very old xdg_shell version and thus falls back to the timeout approach. Be aware that if we rely on timing out the engine will have to stall for the whole timeout, which _could_ be problematic but doensn't seem like it. Further testing is needed. Special thanks go to the guys over at #wayland on OFTC, who very patiently explained me this approach way too many times.
* | | Merge pull request #86966 from Muller-Castro/value2ref-coreRémi Verschelde2024-02-152-2/+2
|\ \ \ | | | | | | | | | | | | Add const lvalue ref to `core/*` container parameters
| * | | Add const lvalue ref to core/* container parametersMuller-Castro2024-02-142-2/+2
| |/ /
* / / SCons: "Environment" to "SConsEnvironment"Thaddeus Crews2024-02-141-2/+2
|/ /
* | Add method to get "base" system UI color (macOS/Windows) and system theme ↵bruvzg2024-02-136-10/+87
| | | | | | | | change callback.
* | Finish splitting functionality of the Vulkan and D3D12 backends into ↵Dario2024-02-1210-108/+154
| | | | | | | | RenderingDeviceDriver.
* | Merge pull request #88134 from akien-mga/scons-wayland-py3.12-escapeRémi Verschelde2024-02-091-4/+4
|\ \ | | | | | | | | | SCons: Use r-strings for wayland-scanner builder command
| * | SCons: Use r-strings for wayland-scanner builder commandRémi Verschelde2024-02-091-4/+4
| | | | | | | | | | | | Silences a Python 3.12 warning.
* | | Merge pull request #82800 from Sauermann/fix-screen-mousemotionRémi Verschelde2024-02-092-0/+7
|\ \ \ | |/ / |/| | | | | Add screen-related attributes to mouse input events
| * | Add screen-related attributes to mouse input eventsMarkus Sauermann2024-02-052-0/+7
| | |
* | | Merge pull request #87464 from bruvzg/pck_sectionRémi Verschelde2024-02-084-38/+12
|\ \ \ | | | | | | | | | | | | [Linux] Add support for PCK embedding section with non GNU-ld linkers.
| * | | [Linux] Add support for PCK embedding section with non GNU-ld linkers.bruvzg2024-01-244-38/+12
| | | |
* | | | Fix various typos with codespellRémi Verschelde2024-02-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using 2.2.7.dev115+g0eb441d6. Had to add `cancelled` to the ignore list, as it's a Wayland signal which we're handling in our code, so we don't want codespell to fix that "typo". Also includes the typo fix from #87927. Co-authored-by: Divyanshu Shekhar <61140213+divshekhar@users.noreply.github.com>
* | | | Merge pull request #88028 from Calinou/wayland-silence-scanner-checkRémi Verschelde2024-02-071-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | Silence wayland-scanner check in buildsystem
| * | | | Silence wayland-scanner check in buildsystemHugo Locurcio2024-02-061-2/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | This prevents a wayland-scanner message from appearing every build when `wayland=yes` is used (the default). The error message when wayland-scanner is still printed as it's not printed by wayland-scanner itself.
* | | | Merge pull request #87977 from Chubercik/wayland-1.22.0Rémi Verschelde2024-02-072-0/+18
|\ \ \ \ | | | | | | | | | | | | | | | wayland: Update to 1.22.0
| * | | | wayland: Update to 1.22.0Jakub Marcowski2024-02-062-0/+18
| |/ / /
* | | | Merge pull request #86843 from RandomShaper/fix_null_ptrRémi Verschelde2024-02-071-1/+2
|\ \ \ \ | |/ / / |/| | | | | | | Avoid several null-dereferences of ApiContextRD
| * | | Avoid several null-dereferences of ApiContextRDPedro J. Estébanez2024-02-061-1/+2
| | |/ | |/|
* | | Merge pull request #87764 from Riteo/wayland-native-handleRémi Verschelde2024-01-312-0/+33
|\ \ \ | | | | | | | | Wayland: Implement `window_get_native_handle`
| * | | Wayland: implement `window_get_native_handle`Riteo2024-01-312-0/+33
| | | | | | | | | | | | | | | | | | | | This will be the most useful for stuff like OpenXR, although we'd need a way to eventually also expose the EGL handles.
* | | | Merge pull request #87776 from bruvzg/wl_nfdRémi Verschelde2024-01-315-1/+81
|\ \ \ \ | | | | | | | | | | [Wayland] Add support for native file dialogs.
| * | | | [Wayland] Add support for native file dialogs.bruvzg2024-01-315-1/+81
| |/ / /
* / / / Wayland: disable backend at build-time if wayland-scanner is missingRiteo2024-01-311-2/+2
|/ / / | | | | | | | | | | | | | | | This allows previous X11-only setups to still build Godot with default settings. Note that compilation will still abort if wayland-scanner is present but not the various Wayland libraries.
* | | Add Wayland supportRiteo2024-01-3026-4/+9537
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not everything is yet implemented, either for Godot or personal limitations (I don't have all hardware in the world). A brief list of the most important issues follows: - Single-window only: the `DisplayServer` API doesn't expose enough information for properly creating XDG shell windows. - Very dumb rendering loop: this is very complicated, just know that the low consumption mode is forced to 2000 Hz and some clever hacks are in place to overcome a specific Wayland limitation. This will be improved to the extent possible both downstream and upstream. - Features to implement yet: IME, touch input, native file dialog, drawing tablet (commented out due to a refactor), screen recording. - Mouse passthrough can't be implement through a poly API, we need a rect-based one. - The cursor doesn't yet support fractional scaling. - Auto scale is rounded up when using fractional scaling as we don't have a per-window scale query API (basically we need `DisplayServer::window_get_scale`). - Building with `x11=no wayland=yes opengl=yes openxr=yes` fails. This also adds a new project property and editor setting for selecting the default DisplayServer to start, to allow this backend to start first in exported projects (X11 is still the default for now). The editor setting always overrides the project setting. Special thanks to Drew Devault, toger5, Sebastian Krzyszkowiak, Leandro Benedet Garcia, Subhransu, Yury Zhuravlev and Mara Huldra.
* | | Merge pull request #80231 from romlok/input-key-locationRémi Verschelde2024-01-293-0/+32
|\ \ \ | | | | | | | | | | | | Support detecting and mapping ctrl/alt/shift/meta by their left/right physical location
| * | | Add InputEventKey.location to tell left from rightMel Collins2024-01-263-0/+32
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | This adds a new enum `KeyLocation` and associated property `InputEventKey.location`, which indicates the left/right location of key events which may come from one of two physical keys, eg. Shift, Ctrl. It also adds simulation of missing Shift KEYUP events for Windows. When multiple Shifts are held down at the same time, Windows natively only sends a KEYUP for the last one to be released.