summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/display_server_x11.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [X11] Do case-insensitive search for pen inversion detectionHansem Ro2022-07-211-1/+1
|
* Improve DisplayServer.window_set_current_screenbruvzg2022-07-191-2/+2
| | | | | Prevent unnecessary fullscreen toggle animation on macOS, when screen is not changed Fix window position on Linux/X11
* Check if GL manager exist to prevent crash when using multithreaded renderer ↵bruvzg2022-07-061-2/+6
| | | | with Vulkan.
* Merge pull request #62212 from hansemro/eraser-detect-4Rémi Verschelde2022-07-041-2/+10
|\ | | | | Add inversion/eraser-end property for tablet pens
| * [macOS, Windows, X11] Add stylus inverted/eraser support toHansem Ro2022-07-041-2/+10
| | | | | | | | InputEventMouseMotion event
* | Properly check for fullscreen toggle made through the Window ManagerWilson E. Alvarez2022-06-301-0/+48
|/ | | | | | Fixes #40007. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
* Remove mouse events that closed the popup from queue, to fix pop-up reopening.bruvzg2022-06-021-4/+11
|
* Add a new HashSet templatereduz2022-05-201-1/+1
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Replace most uses of Map by HashMapreduz2022-05-161-14/+14
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Basic 3D renderingclayjohn2022-05-121-2/+2
|
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-1/+1
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Style: Partially apply clang-tidy's `cppcoreguidelines-pro-type-member-init`Rémi Verschelde2022-05-021-28/+2
| | | | | | | | | | | Didn't commit all the changes where it wants to initialize a struct with `{}`. Should be reviewed in a separate PR. Option `IgnoreArrays` enabled for now to be conservative, can be disabled to see if it proposes more useful changes. Also fixed manually a handful of other missing initializations / moved some from constructors.
* Implement text-to-speech support on Android, iOS, HTML5, Linux, macOS and ↵bruvzg2022-04-281-0/+49
| | | | | | Windows. Implement TextServer word break method.
* Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde2022-04-271-6/+5
|\
| * Fix more issues found by cppcheck.bruvzg2022-04-201-6/+5
| |
* | Merge pull request #58272 from bruvzg/x11_backup_screen_infoRémi Verschelde2022-04-271-6/+19
|\ \ | |/ |/|
| * [Linux/X11] Fallback to the X server root window to get screen rects, if ↵bruvzg2022-02-181-6/+19
| | | | | | | | Xinerama is not available.
* | Fix sub-menu keyboard navigation.bruvzg2022-04-131-1/+1
| |
* | Fix some issues found by cppcheck.bruvzg2022-04-061-2/+2
| |
* | Fix a possible race condition on popup close, that might cause multiple ↵bruvzg2022-04-051-10/+23
| | | | | | | | deletions of the same list item.
* | Fix X11 is_window_maximizedConteZero2022-03-311-2/+9
| |
* | Rename warp mouse functions to warp_mouseMarkus Sauermann2022-03-271-3/+3
| |
* | [X11] Do not try to focus unmapped window.bruvzg2022-03-081-2/+6
| |
* | Fix X11 memory leak after drag & drop file into the editorHaoyu Qiu2022-03-041-12/+19
| |
* | Improve popup window handling.bruvzg2022-02-251-24/+161
|/ | | | Add window FLAG_POPUP and a platform specific routines to control popup auto-hiding and event forwarding.
* Style: Cleanup single-line blocks, semicolons, dead codeRémi Verschelde2022-02-161-1/+1
| | | | | Remove currently unused implementation of TextureBasisU, could be re-added later on if needed and ported.
* Fix typos with codespellRémi Verschelde2022-02-101-4/+4
| | | | | | | Using codespell 2.2-dev from current git. Added `misc/scripts/codespell.sh` to make it easier to run it once in a while and update the skip and ignore lists.
* [X11] Fix decoration reset when returning from fullscreen mode.bruvzg2022-02-081-1/+1
|
* Snap refresh rate to hundreths place on X11jordi2022-02-061-1/+3
|
* Merge pull request #57341 from bruvzg/win_multiwin_fsRémi Verschelde2022-02-041-0/+2
|\
| * [Windows] Add WS_BORDER flag to windows in WINDOW_MODE_FULLSCREEN mode to ↵bruvzg2022-02-041-0/+2
| | | | | | | | | | | | allow multi-window interface in full-screen. [Windows] Add WINDOW_MODE_EXCLUSIVE_FULLSCREEN without WS_BORDER flag enabled (no multi-window support).
* | Merge pull request #57617 from bruvzg/char_cleanupRémi Verschelde2022-02-041-1/+1
|\ \
| * | Cleanup and move char functions to the `char_utils.h` header.bruvzg2022-02-041-1/+1
| |/
* | Merge pull request #57335 from jordigcs/display-refresh-rateRémi Verschelde2022-02-041-0/+60
|\ \ | |/ |/|
| * Add screen_get_refresh_rate to DisplayServerjordi2022-02-031-0/+60
| |
* | Fix captured mouse modeHendrik Brucker2022-02-011-12/+13
| |
* | simplify formatting scripts, add a clang-tidy script, and run clang-tidyNathan Franke2022-01-291-1/+2
| |
* | Merge pull request #56785 from bruvzg/nat_handles_4Rémi Verschelde2022-01-271-0/+18
|\ \ | |/ |/|
| * Add support for getting native display, window, and view handles.bruvzg2022-01-141-0/+18
| |
* | 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-181-15/+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 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 #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
| |
* | 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-031-2/+2
|/ | | | Happy new year to the wonderful Godot community!
* Fix initialising of gl_manager and checking gl_manager and context_vulkan ↵Bastiaan Olij2021-12-181-12/+12
| | | | preventing crash issues.