aboutsummaryrefslogtreecommitdiff
path: root/platform/x11/os_x11.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #19718 from thduynguyen/bug_fixesRémi Verschelde2018-06-251-1/+11
|\ | | | | bugfix: correct #ifdef for TOUCH_ENABLED and OPENGL_ENABLED
| * bugfix: correct #ifdef for TOUCH_ENABLED and OPENGL_ENABLEDDuy-Nguyen Ta2018-06-221-1/+11
| |
* | IME context detection.Saracen2018-06-111-1/+21
|/
* Change position of validation in set_custom_mouse_cursorGuilherme Felipe2018-05-281-1/+2
|
* Merge pull request #19210 from guilhermefelipecgs/fix_invalid_imageMax Hilbrunner2018-05-281-0/+1
|\ | | | | Add validation in set_custom_mouse_cursor
| * Add validation in set_custom_mouse_cursorGuilherme Felipe2018-05-271-0/+1
| | | | | | | | Check if the image is valid.
* | Fix memory leak in set_custom_mouse_cursorGuilherme Felipe2018-05-261-1/+4
|/
* More fixes to set_borderless_windowGuilherme Felipe2018-05-231-0/+3
| | | | | | [x11] Preserve window size when calling this method. [osx] Make sure it don't make the window resizable if it's not needed. [windows] clean up the code.
* Fix #19033Guilherme Felipe2018-05-201-1/+1
| | | | | | | - Fix a bug when mouse is confined don't update the cursor shape. - Don't let the mouse leave the window when resizing to a smaller resolution when MOUSE_MODE_CONFINED. - Fix set_borderless_window to preserve the actual video_mode.widht/height.
* Reset the cursor with Input.set_custom_mouse_cursor(null)Guilherme Felipe2018-05-101-0/+8
|
* Add support for atlas texture on set_custom_mouse_cursorGuilherme Felipe2018-05-091-6/+36
|
* Merge pull request #14622 from bruvzg/non-rectangular-windowsHein-Pieter van Braam2018-05-081-0/+31
|\ | | | | Experimental support for windows with per-pixel transparency.
| * Experimental support for windows with per-pixel transparency (macOS, X11 and ↵bruvzg2018-04-071-0/+31
| | | | | | | | Windows).
* | Implement universal translation of touch to mousePedro J. Estébanez2018-04-301-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now generating mouse events from touch is optional (on by default) and it's performed by `InputDefault` instead of having each OS abstraction doing it. (*) The translation algorithm waits for a touch index to be pressed and tracks it translating its events to mouse events until it is raised, while ignoring other pointers. Furthermore, to avoid an stuck "touch mouse", since not all platforms may report touches raised when the window is unfocused, it checks if touches are still down by the time it's focused again and if so it resets the state of the emulated mouse. *: In the case of Windows, since it already provides touch-to-mouse translation by itself, "echo" mouse events are filtered out to have it working like the rest. On X11 a little hack has been needed to avoid a case of a spurious mouse motion event that is generated during touch interaction. Plus: Improve/fix tracking of current mouse position. ** Summary of changes to settings: ** - `display/window/handheld/emulate_touchscreen` becomes `input/pointing_devices/emulate_touch_from_mouse` - New setting: `input/pointing_devices/emulate_mouse_from_touch`
* | Fix custom cursor when it's hiddenGuilherme Felipe2018-04-091-1/+1
|/ | | | | | | | | [Linux] Ensures that the custom cursor will be used when changing to MOUSE_MODE_VISIBLE. Fix #3086 [Windows] Fix cursor flickering when MOUSE_MODE_HIDDEN. [Mac] Fix possible cursor flicker when MOUSE_MODE_HIDDEN.
* Remove size restriction for mouse cursorGuilherme Felipe2018-04-051-5/+5
|
* Clean and expose get_audio/video_driver_* funcs on OS classMarcelo Fernandez2018-03-041-28/+0
|
* Fix `--help` output, allow renderer override from command line ↵bruvzg2018-03-021-10/+10
| | | | (`--video-driver`).
* add GLES 2 renderer for 2Dkarroffel2018-03-011-4/+27
| | | | | | | | This commit adds a new rendering backend, GLES2, and adds a project setting to enable it. Currently this backend can only be used on the X11 platform, but integrating into other platforms is planned.
* Fix various valgrind reported uninitialized variable usesHein-Pieter van Braam2018-02-281-4/+7
|
* Fix typos with codespellluz.paz2018-02-211-1/+1
| | | | | | | | | | | | | | Found via `codespell -q 3 --skip="./thirdparty,./editor/translations" -I ../godot-word-whitelist.txt` Whitelist consists of: ``` ang doubleclick lod nd que te unselect ```
* Merge pull request #16675 from ↵Rémi Verschelde2018-02-191-18/+37
|\ | | | | | | | | Iskustvo/improved_error_detectioin_in_move-to-trash_for_Linux [X11] Improving error detection in move_to_trash
| * [X11] Improving error detection in move_to_trashIskustvo2018-02-181-18/+37
| |
* | Remove window decorations for fullscreen on X11Pedro J. Estébanez2018-02-161-0/+10
|/
* Merge pull request #15564 from RandomShaper/adpod-topmostRémi Verschelde2018-02-141-3/+54
|\ | | | | Add new window setting: always on top
| * Add new window setting: always on topPedro J. Estébanez2018-01-051-3/+54
| | | | | | | | Implemented for Windows and Linux.
* | Merge pull request #15864 from GodotExplorer/pr-get_unique_id-desktop-implRémi Verschelde2018-02-141-0/+15
|\ \ | | | | | | Implement more methods for OS on Desktop platforms
| * | X11: implement OS.get_unique_idgeequlim2018-01-311-0/+15
| | |
* | | Added OS::center_window to center the window precisely on desktop platformsMarcelo Fernandez2018-02-121-0/+20
|/ /
* | Fix Copy/Paste problems on X11Hein-Pieter van Braam2018-01-291-11/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The target of the TARGETS type should be XA_ATOM and not XA_TARGETS when requested. Since we are sending a number of ATOMS the size should be set to the integer size and not the char size. The size field of the atoms is also the number of atoms and not the size of the array. This caused some clients to wrongly interpret the data and read garbage in the X11 packet. I also add the more modern representation for UTF-8 and clarify the error message if a client attempts to request a type we don't know about. This fixes #10431
* | Silence verbose stderr info message on X11Rémi Verschelde2018-01-241-1/+1
|/
* X11: Add missing return in OS_X11::initialize().Andreas Haas2018-01-051-0/+2
|
* Add missing copyright headers and fix formattingRémi Verschelde2018-01-051-0/+1
| | | | | | Using `misc/scripts/fix_headers.py` on all Godot files. Some missing header guards were added, and the header inclusion order was fixed in the Bullet module.
* Change OS::initialize signature to return Error (fix segfault on x11)Emmanuel Leblond2018-01-041-12/+15
|
* Merge pull request #15092 from ↵Rémi Verschelde2018-01-031-2/+48
|\ | | | | | | | | guilhermefelipecgs/fix_infinite_loop_on_splash_screen Fix infinite loop on splash screen on tiling windows managers
| * Fix infinite loop introduced by 6f3486c4 on tiling windows managersGuilherme Silva2017-12-271-2/+48
| |
* | Merge pull request #12814 from guilhermefelipecgs/add_hardware_custom_cursorRémi Verschelde2018-01-031-0/+42
|\ \ | | | | | | Custom hardware-accelerated mouse cursor
| * | Add implementation for custom hardware cursorGuilherme Silva2017-12-171-0/+42
| | |
* | | Update copyright statements to 2018Rémi Verschelde2018-01-011-2/+2
| |/ |/| | | | | Happy new year to the wonderful Godot community!
* | x11: Fix maximized splash-boot screen bug.Enzo Nocera2017-12-241-0/+4
|/ | | | Fixes #14336
* Add epic hack so vsync can be toggled in run-time from script. Fixes #14458.Juan Linietsky2017-12-161-3/+3
| | | | Call needs to be routed via visual server to reach the proper thread.
* Fix type mismatch in OS::set_borderless_windowRémi Verschelde2017-12-141-1/+1
| | | | Closes #14663.
* -Add lightmapperJuan Linietsky2017-12-141-0/+7
| | | | | | -Fixes to unwrapper (remove degenerates), makes Thekla not crash -Added optional cancel button in EditorProgress -Added function to force processing of events (needed for cancel button)
* Fix no mouse if touch device present in X11Pedro J. Estébanez2017-12-101-16/+17
| | | | | | | | Plus several improvements in this area. Sadly, grabbing has been disabled until a better solution is found. Fixes #14427.
* X11: Process entire event queue at startup.Andreas Haas2017-12-091-6/+5
| | | | Should fix #14336
* Fixes vsync setting ignored when using a separate thread for renderingStefano Bonicatti2017-12-091-0/+2
| | | | | | | | | Setting the vsync in the main thread, after the rendering thread starts and takes the OpenGL context fails, so we need to do that before. Also, for some reason, the main thread cannot make current the context anymore. Fixes #13447
* Style: Apply new clang-format 5.0 style to all filesRémi Verschelde2017-12-071-4/+3
|
* Implement multitouch on X11Pedro J. Estébanez2017-12-061-0/+160
|
* Merge pull request #12387 from santouits/x1111Rémi Verschelde2017-11-201-47/+37
|\ | | | | Fix x11 boot logo position in fullscreen and in maximized
| * Fix x11 boot logo position in fullscreen and in maximizedsantouits2017-10-261-47/+37
| |