summaryrefslogtreecommitdiff
path: root/platform/linuxbsd
AgeCommit message (Collapse)Author
2023-01-03Merge pull request #70624 from bruvzg/cur_scRémi Verschelde
Improve `window_set_current_screen` and fix secondary window initial mode and positions.
2022-12-29Improve `window_set_current_screen` and fix secondary window initial mode ↵bruvzg
and positions.
2022-12-27Allow building X11 without VulkanRiteo
This limit was likely introduced when Vulkan was the only option.
2022-12-16Merge pull request #69678 from Sauermann/fix-slider-button-upRémi Verschelde
Fix colorpicker slider bug with mouse-up outside of popup
2022-12-16Fix String::word_wrap() for long wordsHaoyu Qiu
- 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>
2022-12-15Fix typos with codespellRémi Verschelde
2022-12-09fix dbus and fontconfig linksnikitalita
2022-12-07Merge pull request #69712 from bruvzg/real_sizeRémi Verschelde
Rename `window_get_real_size`, add position counterpart.
2022-12-07Rename `window_get_real_size` to `window_get_size_with_decorations`, add ↵bruvzg
`window_get_position_with_decorations`.
2022-12-07[Linux/X11] Split fullscreen mode into `WINDOW_MODE_EXCLUSIVE_FULLSCREEN` ↵bruvzg
and `WINDOW_MODE_FULLSCREEN` to improve multi-window handling.
2022-12-06Fix colorpicker slider bug with mouse-up outside of popupMarkus Sauermann
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.
2022-12-05Fix that mouse-button-up event is parsed twice for drag-and-dropMarkus Sauermann
Currently Input::get_singleton()->parse_input_event(mb); is called twice for mouse-button-up events when dropping in a different window on linuxbsd.
2022-12-05Merge pull request #69563 from nyanpasu64/patch-1Rémi Verschelde
Fix burning CPU with udev disabled on Flatpak
2022-12-05[Linux/BSD] Fix build without fontconfig.bruvzg
2022-12-04Use system fonts as fallback and improve system font handling.bruvzg
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.
2022-12-03Fix burning CPU with udev disabled on Flatpaknyanpasu64
Fixes #67355.
2022-12-03Load X11 dynamicallyRiteo
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.
2022-11-16X11: Don't override glxSwapInterval function pointers loaded by GLADRémi Verschelde
Fixes #68722. Co-authored-by: alcomposer <alex.w.mitchell@gmail.com>
2022-11-15Set vsync on window creation when using GLES3.clayjohn
Add vsync to Windows platform
2022-11-15Load GLX dynamically with GLADRiteo Siuga
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.
2022-11-15Merge pull request #68680 from bruvzg/fc_no_font_subRémi Verschelde
[fontconfig] Reject font substitutes if non-alias name was used.
2022-11-15Merge pull request #68372 from Riteo/glad2Rémi Verschelde
Regenerate GL loader code with GLAD 2
2022-11-15[fontconfig] Reject font substitutes if non-alias name was used.bruvzg
2022-11-15Merge pull request #68504 from dzil123/cache_system_dir_xdg2Rémi Verschelde
Cache OS_LinuxBSD::get_system_dir
2022-11-14Regenerate GL loader code with GLAD 2Riteo
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".
2022-11-12Cache OS_LinuxBSD::get_system_dir(SYSTEM_DIR_DESKTOP)dzil123
2022-11-13Fix gl_manager nullptr crashMarkus Sauermann
Add a nullptr-check, before accessing gl_manager
2022-11-11Fix unsent WINDOW_EVENT_MOUSE_ENTER event on mouse_mode-changeMarkus Sauermann
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.
2022-11-09Merge pull request #68345 from Abdul-AZ/masterRémi Verschelde
Fix static object destructors being called on gpu selection with X11
2022-11-08Add support for OpenGL to OpenXRDavid Snopek
2022-11-07Fix static object destructors being called on gpu selection with X11Abdulrahman Al Zeidi
2022-11-03Merge pull request #67695 from Sauermann/fix-filedrop-spaceRémi Verschelde
Do not strip spaces at the end of file names of dropped files
2022-11-03Do not strip spaces at the end of file names of dropped files on linuxbsdMarkus Sauermann
2022-11-03Fix unwanted popup closing by mouse-move while holding mouse-buttonMarkus Sauermann
2022-11-03Merge pull request #68182 from Riteo/x11-folderRémi Verschelde
linuxbsd: move all X11 stuff in its own directory
2022-11-02linuxbsd: move all X11 stuff in its own directoryRiteo
This allows implementing `DisplayServer`s like Wayland without making a mess in the source tree.
2022-11-01Load and use system emoji font in the editor.bruvzg
2022-10-31Merge pull request #67879 from bruvzg/fix_no_vlkRémi Verschelde
Fix build with Vulkan disabled and no Vulkan headers installed.
2022-10-31Merge pull request #67578 from KoBeWi/GEDITORRémi Verschelde
Unify usage of GLOBAL/EDITOR_GET
2022-10-28Merge pull request #67790 from kdada/fix-flash-windowClay John
Make creating window do not flicker when specify custom position
2022-10-28Merge pull request #67914 from Calinou/displayserverx11-no-native-iconMax Hilbrunner
Fix `DisplayServer.has_feature()` claiming X11 has native icon support
2022-10-27Fix OS.get_video_adapter_driver_info crashzCubed3
2022-10-27Merge pull request #67421 from Sauermann/fix-failure-exit-codeClay John
Fix Godot exiting with unexpected failure code
2022-10-26Fix `DisplayServer.has_feature()` claiming X11 has native icon supportHugo Locurcio
Native icons are not supported by the X11 DisplayServer, unlike Windows and macOS.
2022-10-26Fix build with Vulkan disabled and no Vulkan headers installed.bruvzg
2022-10-24Make window creation with custom position do not flashWei Guo
2022-10-18Update the DisplayServer video driver error messageclayjohn
to be more accurate and friendly
2022-10-18Unify usage of GLOBAL/EDITOR_GETkobewi
2022-10-15Fix Godot exiting with unexpected failure codeMarkus Sauermann
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.
2022-10-12Merge pull request #67281 from Nidjo123/x11-window-resizeRémi Verschelde
Keep rendering context window size in sync when resizing