diff options
author | Campbell Barton <campbell@blender.org> | 2022-06-08 06:01:31 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-06-08 06:16:14 +0300 |
commit | a1d2efd190038c7615bd3bb459dc86c8b3a8ecdc (patch) | |
tree | 2f709a3566c84d45ccd352104573626a445cdb41 /intern/ghost/GHOST_ISystem.h | |
parent | b3e0101a35b2885212aa199335564dca98dc50cd (diff) |
GHOST/Wayland: draw a software-cursor when wrapping cursor motion
As Wayland doesn't support moving the cursor, draw a cross-hair cursor
at the location used by Blender.
Without this, the cursor was locked at the location where grab started,
making some actions unusable since the cursor location was invisible.
Resolves T77311.
Diffstat (limited to 'intern/ghost/GHOST_ISystem.h')
-rw-r--r-- | intern/ghost/GHOST_ISystem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_ISystem.h b/intern/ghost/GHOST_ISystem.h index bb91abbadec..8a4412403f7 100644 --- a/intern/ghost/GHOST_ISystem.h +++ b/intern/ghost/GHOST_ISystem.h @@ -305,6 +305,11 @@ class GHOST_ISystem { virtual bool useNativePixel(void) = 0; /** + * Return true when warping the cursor is supported. + */ + virtual bool supportsCursorWarp() = 0; + + /** * Focus window after opening, or put them in the background. */ virtual void useWindowFocus(const bool use_focus) = 0; |