Pedro J. Estébanez
3ec62c82a3
Implement no-window mode for X11 and MacOS
...
Bonus: Homogeinize and improve OS::alert() for no-window mode
2020-11-09 20:56:12 +01:00
Ev1lbl0w
f41cc7d644
Changed shell_open behaviour
...
(cherry picked from commit 9e57a395cf
)
2020-10-28 14:05:41 +01:00
Bastiaan Olij
1ea7358405
Add get_native_handle to OS
2020-10-20 20:23:37 +11:00
Rémi Verschelde
1815a90796
Merge pull request #42466 from nekomatata/x11-events-mutex-leak
...
[3.2] Fix leak with events mutex in OS_X11
2020-10-01 19:10:30 +02:00
PouleyKetchoupp
936c701838
Fix leak with events mutex in x11 Display Server
2020-10-01 16:16:23 +02:00
Rémi Verschelde
4ad74609ce
Merge pull request #40205 from bruvzg/click-through-3
...
[3.2] Add mouse event pass-through support for window.
2020-10-01 13:58:24 +02:00
Rémi Verschelde
904773149d
Merge pull request #42341 from nekomatata/x11-events-thread-3.2
...
[3.2] Fix issues related to delay when processing events on Linux
2020-09-30 16:39:55 +02:00
PouleyKetchoupp
f725d9cb73
Fix issues related to delay when processing events on Linux
...
3.2 backport of PR #41910 :
Fix general keyboard input lag on X11 display server
Fix delay to process clipboard content from Godot in other programs
2020-09-26 15:32:40 +02:00
Rémi Verschelde
8b5061aae7
X11: Try to load libXrandr.so.3 if libXrandr.so.2 isn't found
...
All Linux distros, and FreeBSD and OpenBSD seem to have libXrandr.so.2,
but for some reason recent NetBSD versions seem to have libXrandr.so.3 now.
(cherry picked from commit 413ff7938d
)
2020-09-18 11:56:42 +02:00
bruvzg
e51fed9d1b
[3.2] Add window click-through support.
2020-09-17 12:36:01 +03:00
Rémi Verschelde
08ee1de535
X11: Ensure XGetWindowProperty data gets freed
...
Fixes a small memory leak reported by lsan:
```
Direct leak of 73 byte(s) in 1 object(s) allocated from:
#0 0x7f29825f3e70 in malloc (/lib64/liblsan.so.0+0xee70)
#1 0x7f29824a5729 in XGetWindowProperty (/lib64/libX11.so.6+0x29729)
```
2020-06-29 13:05:24 +02:00
bruvzg
2256946f79
[3.2] Add keyboard layout enumeration / set / get functions (macOS, Windows, Linux/X11).
2020-06-13 11:01:49 +03:00
Technohacker
0456311be3
Don't force borderless mode when using per-pixel transparency
2020-05-10 21:05:37 +05:30
bruvzg
da2ca9e22a
[Linux/Windows] Set pressure to 1.0f when primary button is pressed and device is not pressure sensitive.
...
(cherry picked from commit 0128947894
)
2020-05-05 13:41:29 +02:00
Marcel Admiraal
a286edb821
Fix X11 pressure and tilt values.
...
(cherry picked from commit a2ad0878ed
)
2020-05-05 13:41:29 +02:00
Marcel Admiraal
b4ab045444
Fix loss of precision in X11 device info.
...
(cherry picked from commit 9369b37f1f
)
2020-04-16 12:47:19 +02:00
bruvzg
a7ff22ea6d
Fix pressure / tilt ranges on Linux.
...
(cherry picked from commit d552f93f8b
)
2020-02-14 15:58:15 +01:00
Yuri Roubinsky
e8474435e5
Restores correct window position after fullscreen toggling off on Linux
...
(cherry picked from commit 90f00c0813
)
2020-02-06 13:02:07 +01:00
Yuri Roubinsky
8c689f7d4a
Fix restoring window from fullscreen to normal on Linux
...
(cherry picked from commit 8737269275
)
2020-02-06 13:02:07 +01:00
Eric Rybicki
67261b1e87
Remove buggy check if key was already released for accumulated input
...
Fixes #27104
2020-01-22 17:03:33 +01:00
Rémi Verschelde
8454804972
Merge pull request #33967 from Calinou/add-os-is-window-focused
...
Add an `OS.is_window_focused()` getter
2020-01-06 11:39:18 +01:00
Rémi Verschelde
a7f49ac9a1
Update copyright statements to 2020
...
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.
2020-01-01 11:16:22 +01:00
bruvzg
2ef8c5fac5
iOS modular build and export implementation.
2019-12-01 21:57:18 +02:00
Hugo Locurcio
21a3923410
Add an `OS.is_window_focused()` getter
...
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 .
2019-11-28 16:42:51 +01:00
Rémi Verschelde
d191ffb47d
X11: Fix memory leak in handle_key_event
...
Extracted from #27189 .
2019-11-12 07:51:51 +01:00
bruvzg
f675621725
[macOS, Windows, X11] Add graphic tablet pen pressure and tilt support to InputEventMouseMotion event.
2019-10-30 14:42:21 +02:00
bruvzg
2a76fba1f6
Fix X11 modifier keys.
2019-10-12 00:09:14 +03:00
PouleyKetchoupp
5bfe32eaa4
Properly revert cursor when using set_custom_mouse_cursor with null
...
Fixes #32486
2019-10-03 13:02:11 +02:00
qarmin
50be65bf43
Changed some code found by Clang Tidy and Coverity
2019-09-22 18:45:08 +02:00
thomas.herzog
4553935f27
[X11] set PID as window attribute
...
This allows other programs to find out the PID of a Godot instance just
by the X11 window ID.
2019-09-11 10:13:48 +02:00
bruvzg
bd63d3e1ec
Fix modifier keys causing key-code mismatch on Linux/X11.
2019-08-28 13:27:13 +03:00
Carl Drougge
deb73001ab
OS_X11::set_window_maximized gives up after 0.5s
...
Spinning forever is clearly worse, especially since this happens on at
least FVWM even though the window actually is maximized.
2019-08-10 21:29:45 +02:00
Hugo Locurcio
7de2c70e11
Turn `OS.set_min/max_window_size()` warnings into errors
...
Since invalid values will cause the setting to be discarded,
it makes more sense to display an error message instead of a
warning message.
2019-07-30 14:50:52 +02:00
Guilherme Felipe
c3f69c6c76
Fix crash caused by a9a0d0fb15
2019-07-24 15:01:28 -03:00
Guilherme Felipe
a9a0d0fb15
Fix cursor blinking in integrated GPUs
...
Optimization for Input::set_custom_mouse_cursor when used inside
_process function. (Avoids cursor blinking in low end devices)
2019-07-09 19:38:25 -03:00
Rémi Verschelde
d17eac735c
Merge pull request #29815 from NilsIrl/plus_file_1
...
Replace ` + "/" + ` with `String::file_add()`
2019-07-01 12:06:35 +02:00
qarmin
4e5310cc60
Some code changed with Clang-Tidy
2019-06-26 15:08:25 +02:00
Nils ANDRÉ-CHANG
d2833d4f4d
Replace ` + "/" + ` with `String::file_add()`
2019-06-23 13:33:50 +01:00
Rémi Verschelde
0d61fc2c0f
Merge pull request #29752 from bruvzg/window_size_limits
...
Add ability to limit maximum/minimum window size.
2019-06-17 11:58:00 +02:00
BastiaanOlij
02ea99129e
Adding a new Camera Server implementation to Godot.
...
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.
2019-06-15 21:30:32 +10:00
bruvzg
b924fb97d6
Add ability to limit maximum/minimum window size.
2019-06-15 09:49:11 +03:00
Rémi Verschelde
0e6cac8ab8
Merge pull request #29465 from bruvzg/per_pixel_transp_impr
...
Removes redundant "splash" setting, improves per pixel transparency documentation.
2019-06-12 12:50:17 +02:00
bruvzg
2a950f3a7c
[X11] Add window borderless state detection, fix borderless state restoration after exiting fullscreen.
2019-06-11 12:07:48 +03:00
bruvzg
54863b20e6
Removes redundant "display/window/per_pixel_transparency/splash" setting, improves per pixel transparency documentation.
2019-06-04 11:21:29 +03:00
Rémi Verschelde
af2c742f53
Fix and expose String::strip_escapes(), use it in LineEdit paste
...
Supersedes #27736 .
2019-05-31 15:49:14 +02:00
Ibrahn Sahir
b660247216
Fixed uninitialised variable in x11 null cursor creation
...
Fully initialised color var.
Clarified intent a little with comments/layout.
2019-05-23 11:47:28 +01:00
hbina085
f78baa5f93
added a const keyword for a methods that return constant literal...
2019-05-21 02:16:30 -04:00
bruvzg
5714a5f4ea
X11: Check if "_NET_FRAME_EXTENTS" atom is supported.
2019-05-09 19:12:31 +03:00
Andrea Catania
2684e81682
Fixed game crash, regression of #26977
...
Co-authored-by: bruvzg <7645683+bruvzg@users.noreply.github.com>
2019-05-01 09:55:17 +02:00
Rémi Verschelde
ae41e35191
Merge pull request #27676 from qarmin/small_fixes_2
...
Small fixes to static analyzer bugs
2019-05-01 08:19:04 +02:00