summaryrefslogtreecommitdiffstats
path: root/platform/x11/os_x11.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Effective DisplayServer separation, rename X11 -> LinuxBSDJuan Linietsky2020-03-261-3568/+0
|
* Refactored Input, create DisplayServer and DisplayServerX11Juan Linietsky2020-03-261-1/+1
|
* Fixed WM_DELETE flag being set too lateEv1lbl0w2020-03-231-3/+3
|
* Style: Set clang-format Standard to Cpp11Rémi Verschelde2020-03-171-1/+1
| | | | | | | | | | For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
* typedefs: Cleanup unused macros and unnecessary checksRémi Verschelde2020-03-111-2/+4
| | | | | | | | | | We now require a compiler with C++17 support, so we don't need to check for features added to GCC 5 or Clang 3.2. Clang builtin availability checks were unused anyway as Clang defines `__GNUC__` as it's also a GNU C implementation. Fixes #36986.
* Rename `scancode` to `keycode`.bruvzg2020-02-251-14/+28
| | | | | Add `physical_keycode` (keyboard layout independent keycodes) to InputEventKey and InputMap. Fix non-latin keyboard layout keycodes on Linux/X11 (fallback to physical keycodes).
* PoolVector is gone, replaced by VectorJuan Linietsky2020-02-181-6/+2
| | | | | Typed `PoolTypeArray` types are now renamed `PackedTypeArray` and are sugar for `Vector<Type>`.
* Remove incomplete battery status/power APIRémi Verschelde2020-02-141-16/+0
| | | | | | | | | | | It was initially implemented in #5871 for Godot 3.0, but never really completed or thoroughly tested for most platforms. It then stayed in limbo and nobody seems really keen to finish it, so it's better to remove it in 4.0, and re-add eventually (possibly with a different API) if there's demand and an implementation confirmed working on all platforms. Closes #8770.
* Force vulkan driver until OpenGL is implementedJuan Linietsky2020-02-121-0/+5
|
* More GIProbe work and fixesJuan Linietsky2020-02-111-2/+2
|
* Add runtime GLES2 / Vulkan context selection.bruvzg2020-02-111-431/+126
|
* Custom material support seems complete.Juan Linietsky2020-02-111-1/+1
|
* basic 2D engine is more or less working with Vulkan, including editor.Juan Linietsky2020-02-111-2/+11
| | | | Still a lot to do
* A lot of progress with canvas rendering, still far from working.Juan Linietsky2020-02-111-7/+10
|
* Texture refactorJuan Linietsky2020-02-111-3/+3
| | | | | | | | -Texture renamed to Texture2D -TextureLayered as base now inherits 2Darray, cubemap and cubemap array -Removed all references to flags in textures (they will go in the shader) -Texture3D gone for now (will come back later done properly) -Create base rasterizer for RenderDevice, RasterizerRD
* Modify RenderingDevice to use RIDs, now that they are O(1)Juan Linietsky2020-02-111-21/+21
|
* Added support for push constantsJuan Linietsky2020-02-111-1/+5
|
* Initial work on Vulkan:Juan Linietsky2020-02-111-2/+312
| | | | | | | | -Added VulkanContext -Added an X11 implementation -Added a rendering device abstraction -added a Vulkan rendering device abstraction -Engine does not work, only shows Godot logo (run it from bin/)
* Merge pull request #35802 from bruvzg/linux_tablet_rangesRémi Verschelde2020-02-101-24/+6
|\ | | | | Fix pressure / tilt ranges on Linux.
| * Fix pressure / tilt ranges on Linux.bruvzg2020-01-311-24/+6
| |
* | adjusted linux cursors, added fallbacksMennoMax2020-02-101-7/+61
| |
* | Remove duplicate ERR_PRINT macro.Marcel Admiraal2020-02-051-3/+3
| |
* | Restores correct window position after fullscreen toggling off on LinuxYuri Roubinsky2020-02-031-1/+6
| |
* | Fix restoring window from fullscreen to normal on LinuxYuri Roubinsky2020-02-031-1/+1
|/
* Remove buggy check if key was already released for accumulated inputEric Rybicki2020-01-221-5/+0
| | | | Fixes #27104
* Merge pull request #33967 from Calinou/add-os-is-window-focusedRémi Verschelde2020-01-061-0/+8
|\ | | | | Add an `OS.is_window_focused()` getter
| * Add an `OS.is_window_focused()` getterHugo Locurcio2019-11-281-0/+8
| | | | | | | | | | | | | | | | This makes it possible to know whether the window is focused at a given time, without having to track the focus state manually using `NOTIFICATION_WM_FOCUS_IN` and `NOTIFICATION_WM_FOCUS_OUT`. This partially addresses #33928.
* | Update copyright statements to 2020Rémi Verschelde2020-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | Happy new year to the wonderful Godot community! We're starting a new decade with a well-established, non-profit, free and open source game engine, and tons of further improvements in the pipeline from hundreds of contributors. Godot will keep getting better, and we're looking forward to all the games that the community will keep developing and releasing with it.
* | iOS modular build and export implementation.bruvzg2019-12-011-5/+0
|/
* X11: Fix memory leak in handle_key_eventRémi Verschelde2019-11-121-0/+1
| | | | Extracted from #27189.
* [macOS, Windows, X11] Add graphic tablet pen pressure and tilt support to ↵bruvzg2019-10-301-4/+71
| | | | InputEventMouseMotion event.
* Fix X11 modifier keys.bruvzg2019-10-121-3/+2
|
* Properly revert cursor when using set_custom_mouse_cursor with nullPouleyKetchoupp2019-10-031-0/+2
| | | | Fixes #32486
* Changed some code found by Clang Tidy and Coverityqarmin2019-09-221-3/+3
|
* [X11] set PID as window attributethomas.herzog2019-09-111-0/+7
| | | | | This allows other programs to find out the PID of a Godot instance just by the X11 window ID.
* Fix modifier keys causing key-code mismatch on Linux/X11.bruvzg2019-08-281-1/+4
|
* OS_X11::set_window_maximized gives up after 0.5sCarl Drougge2019-08-101-3/+6
| | | | | Spinning forever is clearly worse, especially since this happens on at least FVWM even though the window actually is maximized.
* Turn `OS.set_min/max_window_size()` warnings into errorsHugo Locurcio2019-07-301-2/+2
| | | | | | Since invalid values will cause the setting to be discarded, it makes more sense to display an error message instead of a warning message.
* Fix crash caused by a9a0d0fb15cc5e028dbf8dab8b46d3dc197c4678Guilherme Felipe2019-07-241-0/+1
|
* Fix cursor blinking in integrated GPUsGuilherme Felipe2019-07-091-0/+18
| | | | | Optimization for Input::set_custom_mouse_cursor when used inside _process function. (Avoids cursor blinking in low end devices)
* Merge pull request #29815 from NilsIrl/plus_file_1Rémi Verschelde2019-07-011-1/+1
|\ | | | | Replace ` + "/" + ` with `String::file_add()`
| * Replace ` + "/" + ` with `String::file_add()`Nils ANDRÉ-CHANG2019-06-231-1/+1
| |
* | Some code changed with Clang-Tidyqarmin2019-06-261-6/+2
| |
* | Merge pull request #29752 from bruvzg/window_size_limitsRémi Verschelde2019-06-171-15/+122
|\ \ | | | | | | Add ability to limit maximum/minimum window size.
| * | Add ability to limit maximum/minimum window size.bruvzg2019-06-151-15/+122
| |/
* / Adding a new Camera Server implementation to Godot.BastiaanOlij2019-06-151-0/+5
|/ | | | | | This is a new singleton where camera sources such as webcams or cameras on a mobile phone can register themselves with the Server. Other parts of Godot can interact with this to obtain images from the camera as textures. This work includes additions to the Visual Server to use this functionality to present the camera image in the background. This is specifically targetted at AR applications.
* Merge pull request #29465 from bruvzg/per_pixel_transp_imprRémi Verschelde2019-06-121-1/+1
|\ | | | | Removes redundant "splash" setting, improves per pixel transparency documentation.
| * Removes redundant "display/window/per_pixel_transparency/splash" setting, ↵bruvzg2019-06-041-1/+1
| | | | | | | | improves per pixel transparency documentation.
* | [X11] Add window borderless state detection, fix borderless state ↵bruvzg2019-06-111-5/+22
|/ | | | restoration after exiting fullscreen.
* Fix and expose String::strip_escapes(), use it in LineEdit pasteRémi Verschelde2019-05-311-1/+1
| | | | Supersedes #27736.