summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
Commit message (Collapse)AuthorAgeFilesLines
* Add support for the custom initial screen for the main window, fix primary ↵bruvzg2023-01-072-48/+79
| | | | screen detection.
* One Copyright Update to rule them allRémi Verschelde2023-01-0528-812/+812
| | | | | | | | | | | | | | | | | | | | As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
* Merge pull request #70624 from bruvzg/cur_scRémi Verschelde2023-01-032-15/+54
|\ | | | | | | Improve `window_set_current_screen` and fix secondary window initial mode and positions.
| * Improve `window_set_current_screen` and fix secondary window initial mode ↵bruvzg2022-12-292-15/+54
| | | | | | | | and positions.
* | Allow building X11 without VulkanRiteo2022-12-271-3/+0
|/ | | | This limit was likely introduced when Vulkan was the only option.
* Merge pull request #69678 from Sauermann/fix-slider-button-upRémi Verschelde2022-12-161-12/+24
|\ | | | | | | Fix colorpicker slider bug with mouse-up outside of popup
| * Fix colorpicker slider bug with mouse-up outside of popupMarkus Sauermann2022-12-061-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | When releasing the mouse button outside of the popup while dragging a slider, the slider still gets adjusted by mouse-move events. The reason for this bug is that the mouse-up event is sent to the focused window (main editor window) instead of the colorpicker popup window. This PR adjusts the linuxbsd X11 DisplayServer to send the event to the correct expected window.
* | Fix String::word_wrap() for long wordsHaoyu Qiu2022-12-161-6/+5
| | | | | | | | | | | | | | | | | | - Changes `TextServer.string_get_word_breaks()` - Returns pairs of boundary start and end offsets - Accepts `chars_per_line` to return line breaks - Removes `String::word_wrap()` Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
* | Fix typos with codespellRémi Verschelde2022-12-1512-14/+14
| |
* | fix dbus and fontconfig linksnikitalita2022-12-092-4/+4
| |
* | Merge pull request #69712 from bruvzg/real_sizeRémi Verschelde2022-12-072-4/+43
|\ \ | | | | | | | | | Rename `window_get_real_size`, add position counterpart.
| * | Rename `window_get_real_size` to `window_get_size_with_decorations`, add ↵bruvzg2022-12-072-4/+43
| |/ | | | | | | `window_get_position_with_decorations`.
* / [Linux/X11] Split fullscreen mode into `WINDOW_MODE_EXCLUSIVE_FULLSCREEN` ↵bruvzg2022-12-072-8/+27
|/ | | | and `WINDOW_MODE_FULLSCREEN` to improve multi-window handling.
* Fix that mouse-button-up event is parsed twice for drag-and-dropMarkus Sauermann2022-12-051-1/+0
| | | | | | Currently Input::get_singleton()->parse_input_event(mb); is called twice for mouse-button-up events when dropping in a different window on linuxbsd.
* Merge pull request #69563 from nyanpasu64/patch-1Rémi Verschelde2022-12-051-1/+1
|\ | | | | | | Fix burning CPU with udev disabled on Flatpak
| * Fix burning CPU with udev disabled on Flatpaknyanpasu642022-12-031-1/+1
| | | | | | Fixes #67355.
* | [Linux/BSD] Fix build without fontconfig.bruvzg2022-12-052-3/+5
| |
* | Use system fonts as fallback and improve system font handling.bruvzg2022-12-044-33/+652
|/ | | | | | | Add support for font weight and stretch selection when using system fonts. Add function to get system fallback font from a font name, style, text, and language code. Implement system font support for Android. Use system fonts as a last resort fallback.
* Load X11 dynamicallyRiteo2022-12-0321-28/+12818
| | | | | | | | | | | | | | | | The loaders have been generated through hpvb's dynload-wrapper, although they had to be heavily handpatched to workaround some already reported issues with it. I added a note to each generated file to account for that. As GLAD uses X11 stuff directly, I had to define the GLAD_GLX_NO_X11 macro to not let do it that, and handle myself the display loading and screen handling part myself, which wasn't that hard but it's still something worth saying. I plan to improve greatly the X11 backend (including this aspect) but, as the release isn't that far and I'm also working on the Wayland backend, this will do for now, I hope.
* X11: Don't override glxSwapInterval function pointers loaded by GLADRémi Verschelde2022-11-161-4/+0
| | | | | | Fixes #68722. Co-authored-by: alcomposer <alex.w.mitchell@gmail.com>
* Set vsync on window creation when using GLES3.clayjohn2022-11-151-1/+2
| | | | Add vsync to Windows platform
* Load GLX dynamically with GLADRiteo Siuga2022-11-154-28/+26
| | | | | | | This is accomplished through the addition of a GLAD GLX loader in the `thirdparty` directory. This is another step towards a nice Wayland/X11 interoperation.
* Merge pull request #68680 from bruvzg/fc_no_font_subRémi Verschelde2022-11-151-0/+15
|\ | | | | | | [fontconfig] Reject font substitutes if non-alias name was used.
| * [fontconfig] Reject font substitutes if non-alias name was used.bruvzg2022-11-151-0/+15
| |
* | Merge pull request #68372 from Riteo/glad2Rémi Verschelde2022-11-151-1/+1
|\ \ | |/ |/| | | Regenerate GL loader code with GLAD 2
| * Regenerate GL loader code with GLAD 2Riteo2022-11-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | GLAD 1 creates unusable loaders for EGL, while the newly released GLAD 2 does not, so for consistency I thought that it would be a good idea to uniform things beforehand. While it had some API changes some renames were all that was needed and everything works like before, at least on the Wayland branch. I've kept the structure identical, although this new generator has quite a few hefty features, such as a single header mode. I've also added GLAD to `thirdparty/README.md`, but I haven't specified that in the commit title because it's a very small "fix".
* | Merge pull request #68504 from dzil123/cache_system_dir_xdg2Rémi Verschelde2022-11-152-7/+8
|\ \ | |/ |/| Cache OS_LinuxBSD::get_system_dir
| * Cache OS_LinuxBSD::get_system_dir(SYSTEM_DIR_DESKTOP)dzil1232022-11-122-7/+8
| |
* | Fix gl_manager nullptr crashMarkus Sauermann2022-11-131-1/+4
|/ | | | Add a nullptr-check, before accessing gl_manager
* Fix unsent WINDOW_EVENT_MOUSE_ENTER event on mouse_mode-changeMarkus Sauermann2022-11-111-2/+10
| | | | | | | coauthor: @bruvzg On linuxbsd and macOS the WINDOW_EVENT_MOUSE_ENTER was not sent, when the mouse became visible again after a mouse_mode-change.
* Merge pull request #68345 from Abdul-AZ/masterRémi Verschelde2022-11-091-1/+4
|\ | | | | Fix static object destructors being called on gpu selection with X11
| * Fix static object destructors being called on gpu selection with X11Abdulrahman Al Zeidi2022-11-071-1/+4
| |
* | Add support for OpenGL to OpenXRDavid Snopek2022-11-083-0/+18
|/
* Merge pull request #67695 from Sauermann/fix-filedrop-spaceRémi Verschelde2022-11-031-2/+2
|\ | | | | | | Do not strip spaces at the end of file names of dropped files
| * Do not strip spaces at the end of file names of dropped files on linuxbsdMarkus Sauermann2022-11-031-2/+2
| |
* | Fix unwanted popup closing by mouse-move while holding mouse-buttonMarkus Sauermann2022-11-032-3/+1
|/
* Merge pull request #68182 from Riteo/x11-folderRémi Verschelde2022-11-0313-14/+27
|\ | | | | | | linuxbsd: move all X11 stuff in its own directory
| * linuxbsd: move all X11 stuff in its own directoryRiteo2022-11-0213-14/+27
| | | | | | | | | | This allows implementing `DisplayServer`s like Wayland without making a mess in the source tree.
* | Load and use system emoji font in the editor.bruvzg2022-11-011-1/+10
|/
* Merge pull request #67879 from bruvzg/fix_no_vlkRémi Verschelde2022-10-312-0/+8
|\ | | | | | | Fix build with Vulkan disabled and no Vulkan headers installed.
| * Fix build with Vulkan disabled and no Vulkan headers installed.bruvzg2022-10-262-0/+8
| |
* | Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde2022-10-312-3/+3
|\ \ | | | | | | | | | Unify usage of GLOBAL/EDITOR_GET
| * | Unify usage of GLOBAL/EDITOR_GETkobewi2022-10-182-3/+3
| | |
* | | Merge pull request #67790 from kdada/fix-flash-windowClay John2022-10-282-5/+10
|\ \ \ | | | | | | | | Make creating window do not flicker when specify custom position
| * | | Make window creation with custom position do not flashWei Guo2022-10-242-5/+10
| | |/ | |/|
* | | Merge pull request #67914 from Calinou/displayserverx11-no-native-iconMax Hilbrunner2022-10-281-1/+1
|\ \ \ | | | | | | | | Fix `DisplayServer.has_feature()` claiming X11 has native icon support
| * | | Fix `DisplayServer.has_feature()` claiming X11 has native icon supportHugo Locurcio2022-10-261-1/+1
| |/ / | | | | | | | | | | | | Native icons are not supported by the X11 DisplayServer, unlike Windows and macOS.
* | | Fix OS.get_video_adapter_driver_info crashzCubed32022-10-271-0/+4
| | |
* | | Merge pull request #67421 from Sauermann/fix-failure-exit-codeClay John2022-10-271-0/+1
|\ \ \ | |/ / |/| | Fix Godot exiting with unexpected failure code
| * | Fix Godot exiting with unexpected failure codeMarkus Sauermann2022-10-151-0/+1
| |/ | | | | | | | | | | | | | | | | The exit code is initialized as EXIT_FAILURE to indicate failures during startup. Closing the Game window via the window manager does not change the exit code, so the program exists with EXIT_FAILURE. This PR set the exit code to EXIT_SUCCESS when initialization was successful just before starting the main loop.