summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* / | [Native File Dialog] Add support for adding custom options to the dialogs.bruvzg2024-01-244-15/+120
|/ / | | | | | | Add support for adding custom options (checkboxes and optionboxes) to the dialogs (both native and built-in).
* | [X11] Don't re-set input focus if the given window already has itDavid Snopek2024-01-182-5/+18
| |
* | Merge pull request #86441 from dsnopek/mequam-x11-focus-grabRémi Verschelde2024-01-182-4/+21
|\ \ | | | | | | | | | [X11] Fix Godot stealing focus on alternative window managers
| * | [X11] Fix Godot stealing focus on alternative Window Managersmequam2024-01-092-4/+21
| |/
* | Reorganize code related to editor themingYuri Sizov2024-01-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a new EditorThemeManager class to abstract theme generatio and its subroutines. Logic related to EditorTheme, EditorColorMap, and editor icons has been extracted into their respective files with includes cleaned up. All related files have been moved to a separate folder to better scope them in the project. This includes relevant generated files as well.
* | Merge pull request #86446 from reduz/transient-to-focusedRémi Verschelde2024-01-152-0/+7
|\ \ | | | | | | | | | Implement a `transient_to_focused` Window mode
| * | Implement a transient_to_focused modeJuan Linietsky2024-01-142-0/+7
| |/ | | | | | | | | | | | | This intends to be the correct way to handle non-child windows becoming covered by the current window when becoming focused. Enabling this property on select windows, they will become transient to the currently focused one when becoming visible. This deprecates the "unparent_when_invisible" function introduced by #76025.
* | Update deferred calls to use Callableskobewi2024-01-091-1/+1
| |
* | Merge pull request #84445 from Rubonnek/add-const-references-clang-tidyRémi Verschelde2024-01-042-2/+2
|\ \ | | | | | | | | | Add const references detected by clang-tidy
| * | Add const references detected by clang-tidyWilson E. Alvarez2023-12-162-2/+2
| | |
* | | Merge pull request #86160 from gregdebonis/gregdebonis/issue86156Rémi Verschelde2024-01-031-1/+1
|\ \ \ | | | | | | | | | | | | Fix key mapping for `XK_KP_Delete` key
| * | | Wrong key mapping for XK_KP_Delete keyGregory De Bonis2023-12-141-1/+1
| |/ / | | | | | | | | | Fixes #86156
* | / Add RD_ENABLED when VULKAN_ENABLED or D3D12_ENABLED is addedjsjtxietian2023-12-251-1/+1
| |/ |/|
* | Merge pull request #83452 from RandomShaper/rd_commonYuri Sizov2023-12-204-54/+75
|\ \ | | | | | | Split `RenderingDevice` into API-agnostic and `RenderingDeviceDriver` parts
| * | Split RenderingDevice into API-agnostic and RenderingDeviceDriver partsPedro J. Estébanez2023-12-204-54/+75
| |/ | | | | | | | | | | Credit and thanks to @bruzvg for multiple build fixes, update of 3rd-party items and MinGW support. Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
* | Merge pull request #75489 from bruvzg/init_pos_usableYuri Sizov2023-12-191-1/+2
|\ \ | |/ |/| | | [DisplayServer] Use screen "usable rect" instead of full rect to calculate initial window rect.
| * [DisplayServer] Use screen "usable rect" instead of full rect to calculate ↵bruvzg2023-12-041-1/+2
| | | | | | | | initial window rect.