summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | Ensure more export errors are reported to usersYuri Sizov2023-12-061-9/+9
| | | | | | | | | | | | | | Also fixes the timing issue when exporting all presets at the same time, where the error report would try to appear while the progress dialog was still visible.
* | X11: Send IME update notification deferredHolonProduction2023-11-241-1/+1
|/
* Don't use TTR/RTR for ERR/WARN printsRémi Verschelde2023-11-121-1/+1
| | | | We don't translate those, only editor strings are translated.
* [X11] Add fallback from desktop GL to GLES, suppress PRIME detector error spam.bruvzg2023-11-064-13/+40
|
* Linux: Remove hardcoded lib path for x86 cross-compilationRémi Verschelde2023-11-011-11/+10
| | | | | | | | | This breaks the build with our updated i686 Linux SDK which doesn't contain this path, and may not be needed at all. This might need further work to be robust, and there's an open PR already adding -march flags for all supported architectures, but for now we're playing it safe for 4.2.
* TTS_Linux: Fix size_t template issue on OpenBSD by using int consistentlythfrwn2023-10-272-7/+7
|
* Fix freeze when requesting clipboard image from our own windowSetadokalo2023-10-251-2/+2
|
* Improved X11 screen_get_refresh_rate performanceBrayden Harlon2023-10-241-1/+1
|
* Merge pull request #81439 from Setadokalo/clipboard_imageRémi Verschelde2023-10-202-2/+226
|\ | | | | | | Implement `clipboard_get`/`has_image` for X11
| * Implement clipboard_get/has_image for X11Setadokalo2023-10-202-2/+226
| |
* | Add error messages to the native menu and file dialogs callback.bruvzg2023-10-142-6/+15
| |
* | Fix unused variables warning when `touch` is disabledKacper Gibas2023-10-131-3/+7
| |