summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #57497 from Geometror/fix-mouse-modeRémi Verschelde2022-02-012-12/+15
|\
| * Fix captured mouse modeHendrik Brucker2022-02-012-12/+15
| |
* | Merge pull request #56548 from madmiraal/fix-53894Rémi Verschelde2022-01-311-1/+1
|\ \ | |/ |/|
| * Set window to focused when createdMarcel Admiraal2022-01-061-1/+1
| |
* | simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke2022-01-292-17/+30
| |
* | Merge pull request #56785 from bruvzg/nat_handles_4Rémi Verschelde2022-01-272-0/+20
|\ \
| * | Add support for getting native display, window, and view handles.bruvzg2022-01-142-0/+20
| | |
* | | Fix memory leak when move to trash fails on LinuxHaoyu Qiu2022-01-251-5/+3
| | |
* | | Merge pull request #56754 from madmiraal/fix-45592Rémi Verschelde2022-01-241-1/+0
|\ \ \
| * | | Use mouse event relative motion to calculate mouse velocityMarcel Admiraal2022-01-131-1/+0
| | | |
* | | | Rename or refactor macros to avoid leading underscoresOmar Polo2022-01-201-1/+0
| | | | | | | | | | | | | | | | | | | | These are not used consistently and some can conflict with system-specific defines. While here, also delete some unused macros.
* | | | Window management improvements.bruvzg2022-01-182-16/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [macOS] Fix transient windows not working in the full-screen mode. [macOS] Fix moving transient windows to the other screen than parent window. [macOS] Fix popup menu switch on hover. [macOS] Use content origin rect for windows position (to ensure `DS.mouse_get_position` is equal to `DS.window_get_position` + mouse position from the input events). [macOS] Fix incorrect input coordinates, when external display with different scaling in connected/disconnected. [macOS/Windows] Fix moving fullscreen windows between the screens. Add auto refocusing of the parent window, when the focused transient window is closed. Remove redundant `DS.mouse_get_absolute_position` function (returns mouse position in the screen coordinates, same as `DS.mouse_get_position`).
* | | | Fix Actions mapped to triggers not using the full rangeMarcel Admiraal2022-01-142-23/+7
| |/ / |/| |
* | | Fix various typosluz paz2022-01-131-1/+1
|/ / | | | | Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,expct,fave,findn,gird,hist,inh,inout,leapyear,lod,nd,numer,ois,ony,paket,ro,seeked,sinc,switchs,te,uint,varn,vew`
* | Merge pull request #56492 from akien-mga/remove-author-docstringsRémi Verschelde2022-01-121-2/+2
|\ \
| * | Style: Remove inconsistently used `@author` docstringsRémi Verschelde2022-01-041-2/+2
| |/ | | | | | | | | | | | | | | | | | | Each file in Godot has had multiple contributors who co-authored it over the years, and the information of who was the original person to create that file is not very relevant, especially when used so inconsistently. `git blame` is a much better way to know who initially authored or later modified a given chunk of code, and most IDEs now have good integration to show this information.
* | New OpenGL batching canvas rendererclayjohn2022-01-112-4/+0
| |
* | Merge pull request #56322 from madmiraal/fix-42450Rémi Verschelde2022-01-111-2/+2
|\ \
| * | Rename speed to velocity when it's a directional VectorMarcel Admiraal2021-12-291-2/+2
| | |
* | | Fix multiple missing UTF-8 decoding.bruvzg2022-01-061-2/+2
| |/ |/|
* | Merge pull request #56438 from madmiraal/fix-56428Rémi Verschelde2022-01-031-7/+11
|\ \ | | | | | | Fix tablet tilt values returning bad values
| * | Fix tablet tilt values returning bad valuesMarcel Admiraal2022-01-021-7/+11
| |/
* / Update copyright statements to 2022Rémi Verschelde2022-01-0322-44/+44
|/ | | | Happy new year to the wonderful Godot community!
* Merge pull request #56039 from Rubonnek/update-detect-prime-formatting-masterRémi Verschelde2021-12-201-4/+7
|\
| * Sync detect_prime_x11.cpp formatting changes from 3.x branchWilson E. Alvarez2021-12-171-4/+7
| |
* | Fix initialising of gl_manager and checking gl_manager and context_vulkan ↵Bastiaan Olij2021-12-181-12/+12
|/ | | | preventing crash issues.
* Misc build system fixesAaron Franke2021-12-101-1/+1
|
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-4/+4
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Rename `remove()` to `remove_at()` when removing by indexLightning_A2021-11-232-2/+2
|
* Use "enum class" for input enumsAaron Franke2021-11-126-295/+295
|
* String: Remove `erase` method, bindings can't mutate StringRémi Verschelde2021-11-111-1/+1
|
* Merge pull request #54315 from nekomatata/x11-key-events-logRémi Verschelde2021-11-091-1/+8
|\
| * Add KeyPress & KeyRelease events to X11 debug events loggingPouleyKetchoupp2021-10-271-1/+8
| | | | | | | | Compiled out by default, just used for debugging local builds.
* | Fix BadWindow X11 errors when a window is closed while processing strutsPouleyKetchoupp2021-11-041-2/+21
| | | | | | | | | | | | | | | | | | A window can be closed on the server side while processing results from _NET_CLIENT_LIST, which causes BadWindow fatal errors by default in XGetWindowProperty. The only way to safely catch this case is to set an error handler to ignore BadWindow errors while these commands are processed.
* | Add support for PowerPC familyDaniel Kolesa2021-11-011-2/+10
| |
* | Merge pull request #41565 from nekomatata/x11-usable-screen-sizeRémi Verschelde2021-11-011-11/+257
|\ \
| * | Implemented screen_get_usable_rect for X11 Display ServerPouleyKetchoupp2021-10-291-11/+257
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Helps with fixing issues with scrolling popups not respecting screen decorations on the display server side. Reproduction steps for a simple use case: - Start the editor project list - Open the language selection popup Support for multi-screen: Handling decorations is supported in different ways depending on the information the window manager provides: - _GTK_WORKAREAS is used when available from the WM to get accurate rect for the different screens directly (available on Gnome). - Alternatively, strut information is used to calculate available space for a given desktop manually (XFCE, KDE). - As last resort _NET_WORKAREA is used. It provides one full rect for all screens, which doesn't handle decorations on the secondary screen in all cases.
* | | Use OpenGL 3.3 core profile instead of compatibility profileClay John2021-10-317-44/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename OpenGL to GLES3 in the source code per community feedback. - The renderer is still exposed as "OpenGL 3" to the user. - Hide renderer selection dropdown until OpenGL support is more mature. - The renderer can still be changed in the Project Settings or using the `--rendering-driver opengl` command line argument. - Remove commented out exporter code. - Remove some OpenGL/DisplayServer-related debugging prints.
* | | Rename GLES2 driver to OpenGL to prepare for the upgrade to GLES3Hugo Locurcio2021-10-306-47/+53
| | | | | | | | | | | | | | | - Use lowercase driver names for the `--rendering-driver` command line argument.
* | | Add GLES2 2D renderer + Linux display managerlawnjelly2021-10-308-115/+374
|/ / | | | | | | | | | | | | | | | | First implementation with Linux display manager. - Add single-threaded mode for EditorResourcePreview (needed for OpenGL). Co-authored-by: clayjohn <claynjohn@gmail.com> Co-authored-by: Fabio Alessandrelli <fabio.alessandrelli@gmail.com>
* | Merge pull request #42117 from nekomatata/x11-get-window-screenRémi Verschelde2021-10-282-26/+51
|\ \ | | | | | | Fix window_get_current_screen for X11 display server
| * | Fix window_get_current_screen for X11 display serverPouleyKetchoupp2021-10-282-26/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This method used to check which screen contains the top-left corner of the window (and default to the first screen in case none is found), which is not accurate in some cases. Now the area of overlap with each screen is calculated, so we can get the best candidate based on the window's position. This makes window_get_current_screen consistent with Windows platform, and fixes an issue where popups appear on the main screen when the main window is slightly moved outside of the desktop on the top or left.
* | | clang-format: Various fixes to comments alignment from `clang-format` 13Rémi Verschelde2021-10-281-21/+1
| | | | | | | | | | | | All reviewed manually and occasionally rewritten to avoid bad auto formatting.
* | | clang-format: Disable alignment of operands, too unreliableRémi Verschelde2021-10-281-19/+19
|/ / | | | | | | | | | | | | | | | | Sets `AlignOperands` to `DontAlign`. `clang-format` developers seem to mostly care about space-based indentation and every other version of clang-format breaks the bad mismatch of tabs and spaces that it seems to use for operand alignment. So it's better without, so that it respects our two-tabs `ContinuationIndentWidth`.
* / Fix input events random delay on X11PouleyKetchoupp2021-10-272-18/+29
|/ | | | | | | | | | | The new system based on a thread gathering events from the X11 server was causing delays in some scenarios where some events have just been missed at the time of processing and we're waiting for a whole frame to check them again. Solved by flushing again and checking for pending events at the beginning of the process loop, in addition to events already gathered on the event thread.
* Merge pull request #54045 from ConteZero/primary_clipboard_linux_fix_warningRémi Verschelde2021-10-231-0/+1
|\
| * Fix primary clipboard warningConteZero2021-10-231-0/+1
| |
* | Add support for the RISC-V architectureAaron Franke2021-10-221-0/+7
|/ | | | Supports RV64GC (RISC-V 64-bit with general-purpose and compressed-instruction extensions)
* Merge pull request #53702 from ConteZero/primary_clipboard_linuxRémi Verschelde2021-10-202-6/+47
|\
| * Added primary clipboard for LinuxConteZero2021-10-182-6/+47
| |