summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/display_server_x11.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Re-apply "Fixes for windows in X11 tiling WMs"PouleyKetchoupp2020-08-221-2/+10
| | | | | | | From PR #38727 which was reverted in #41373 because of regressions in Ubuntu with Gnome. Co-authored-by: Lorenzo Cerqua <lorenzocerqua@tutanota.com>
* Revert "Fixes for windows in X11 tiling WMs"Juan Linietsky2020-08-191-10/+2
|
* Remove obsolete GLES2 backend codeRémi Verschelde2020-08-131-4/+0
| | | | | | | | | | | This code currently isn't compiled (and cannot compile). We plan to re-add OpenGL ES-based renderer(s) in Godot 4.0 alongside Vulkan (probably ES 3.0, possibly also a low-end ES 2.0), but the code will be quite different so it's not relevant to keep this old Godot 3.2 code. The `drivers/gles2` code from the `3.2` branch can be used as a reference for a potential new implementation.
* Fix losing X11 window normal size hint propertiesopl-2020-07-311-154/+60
| | | | | | This was caused by `XSetWMNormalHints` being called multiple times, each time with different values. Calling the method replaces the old data completely, resulting in some of the settings being lost. Since the method was called 3 times before the window was mapped, this resulted in the position hint being lost and the window always getting opened at a position determined by the WM.
* DisplayServer: separate window showing into another functionLorenzo Cerqua2020-07-231-2/+10
| | | | | | | | | | | | When creating a window, Godot would first register it to the WM(show it) and then set its flags. This works fine on a floating WM, but on tiling WMs as soon as a window gets registered the WM immediately acts on the window by scaling it up and treating it as a generic window, being registered without any special flags. This commit separates the showing of the window into another function and calls it after the most important flags are set, making windows with special flags(eg. all popups) work again on tiling WMs. Fixes #37930
* Fix spelling & grammar in comments, docs, and messagesAndy Maloney2020-07-211-2/+2
|
* Add error messages if Vulkan init failed, prevent Vulkan context freeing ↵bruvzg2020-07-131-1/+7
| | | | uninitialized device and instance.
* Merge pull request #40105 from Logharaa/masterRémi Verschelde2020-07-041-0/+1
|\ | | | | Stop looping as soon as the first window that has focus is found
| * Break loop when the first focused window is foundGaël2020-07-041-0/+1
| |
* | Improve the situation of DND on X11Juan Linietsky2020-07-031-1/+20
|/
* Add a focus out timeout for X11 to less events of this type are receivedJuan Linietsky2020-07-011-4/+10
|
* Ensure embedded mode works againJuan Linietsky2020-07-011-11/+31
| | | | Also implemented application in/out notifications in X11.
* X11: Ensure XGetWindowProperty data gets freedRémi Verschelde2020-06-291-83/+28
| | | | And cleanup includes a bit.
* Add keyboard layout enumeration / set / get functions (macOS, Windows, ↵bruvzg2020-06-131-25/+94
| | | | Linux/X11), remove latin variant function.
* Style: Enforce braces around if blocks and loopsRémi Verschelde2020-05-141-49/+92
| | | | | Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
* Style: Enforce separation line between function definitionsRémi Verschelde2020-05-141-0/+19
| | | | | | | | | | | | | | | | | | | | | | | I couldn't find a tool that enforces it, so I went the manual route: ``` find -name "thirdparty" -prune \ -o -name "*.cpp" -o -name "*.h" -o -name "*.m" -o -name "*.mm" \ -o -name "*.glsl" > files perl -0777 -pi -e 's/\n}\n([^#])/\n}\n\n\1/g' $(cat files) misc/scripts/fix_style.sh -c ``` This adds a newline after all `}` on the first column, unless they are followed by `#` (typically `#endif`). This leads to having lots of places with two lines between function/class definitions, but clang-format then fixes it as we enforce max one line of separation. This doesn't fix potential occurrences of function definitions which are indented (e.g. for a helper class defined in a .cpp), but it's better than nothing. Also can't be made to run easily on CI/hooks so we'll have to be careful with new code. Part of #33027.
* Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocksRémi Verschelde2020-05-141-121/+0
| | | | | | | | | | | | | | Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
* Style: clang-format: Disable AllowShortIfStatementsOnASingleLineRémi Verschelde2020-05-101-4/+8
| | | | | | | Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
* [Linux/Windows] Set pressure to 1.0f when primary button is pressed and ↵bruvzg2020-05-031-2/+9
| | | | device is not pressure sensitive.
* Merge pull request #37756 from madmiraal/fix-x11-pressure-tiltRémi Verschelde2020-05-031-33/+52
|\ | | | | Fix X11 pressure and tilt values.
| * Fix X11 pressure and tilt values.Marcel Admiraal2020-04-101-33/+52
| |
* | Merge pull request #37802 from ThakeeNathees/window-position-bug-osx-x11Rémi Verschelde2020-04-291-2/+4
|\ \ | | | | | | display server window position bug fix
| * | display server window position bug fix (#37323)Thakee Nathees2020-04-111-2/+4
| | |
* | | Rename InputFilter back to InputRémi Verschelde2020-04-281-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It changed name as part of the DisplayServer and input refactoring in #37317, with the rationale that input no longer goes through the main loop, so the previous Input singleton now only does filtering. But the gains in consistency are quite limited in the renaming, and it breaks compatibility for all scripts and tutorials that access the Input singleton via the scripting language. A temporary option was suggested to keep the scripting singleton named `Input` even if its type is `InputFilter`, but that adds inconsistency and breaks C#. Fixes godotengine/godot-proposals#639. Fixes #37319. Fixes #37690.
* | | Fixes leaks in ResourceCache, Vulkan and X11qarmin2020-04-151-1/+4
| |/ |/|
* | Fix loss of precision in X11 device info.Marcel Admiraal2020-04-101-4/+4
|/
* Replace NULL with nullptrlupoDharkael2020-04-021-42/+42
|
* Fix out of bound array access caused by unassigned variableRafał Mikrut2020-04-011-8/+9
|
* Renaming of servers for coherency.Juan Linietsky2020-03-271-3/+3
| | | | | | | | | | VisualServer -> RenderingServer PhysicsServer -> PhysicsServer3D Physics2DServer -> PhysicsServer2D NavigationServer -> NavigationServer3D Navigation2DServer -> NavigationServer2D Also renamed corresponding files.
* Add macOS DisplayServer implementation.bruvzg2020-03-261-0/+18
| | | | Change global menu to use Callable, add support for check items and submenus.
* Fixes to X11, still pretty brokenJuan Linietsky2020-03-261-27/+110
|
* Multiple changes to DisplayServerX11Mateo Kuruk Miccino2020-03-261-42/+130
| | | | | | | | | | | | | | | | - Travis: Change x11 to linuxbsd - SCons: Change x11 plataform to linuxbsd - Plugins: Remove ; to avoid fallthrough warning - DisplayServerX11: Implement set_icon - DisplayServerX11: Fix X11 bug when a window was erased from windows map, all the changes from that erased windows are sending to the main window - DisplayServerX11: Reorder create_window commands - DisplayServerX11: Change every Size2 to Size2i and Rect2 to Rect2i where it belongs + More X11 fixes which have been integrated directly back into reduz's original commits while rebasing the branch.
* Implemented drag and drop across windows, both OS and embedded.Juan Linietsky2020-03-261-0/+20
|
* Popups have also been converted to windowsJuan Linietsky2020-03-261-4/+9
| | | | Controls using the old modal API have been replaced to use popups.
* Fixes to window style flagsJuan Linietsky2020-03-261-3/+3
|
* Open sub-windows as embedded if the OS does not support themJuan Linietsky2020-03-261-6/+6
|
* Make DisplayServerX11 thread safeJuan Linietsky2020-03-261-3/+125
|
* Working multiple window support, including editorJuan Linietsky2020-03-261-15/+49
|
* Support for transient windowsJuan Linietsky2020-03-261-0/+43
|
* Refactored input, goes all via windows now.Juan Linietsky2020-03-261-24/+100
| | | | Also renamed Input to InputFilter because all it does is filter events.
* Added a Window node, and made it the scene root.Juan Linietsky2020-03-261-7/+23
| | | | Still a lot of work to do.
* Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky2020-03-261-0/+3347