diff options
author | Campbell Barton <campbell@blender.org> | 2022-07-01 13:35:11 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-07-01 13:35:11 +0300 |
commit | 5e5fe217caaed35d6a39744d4f22b38793beae8f (patch) | |
tree | c3e67175cb476a8c2f7ea39edc31a6b73ef496a0 /intern/ghost/intern/GHOST_WindowWayland.cpp | |
parent | 41c10ac84ae420274dd79227dc698c8be14d13dd (diff) |
Cleanup: rename internal cursor grabbing function
This function was named as if it was part of GHOST's API but was
in fact an internal utility.
Diffstat (limited to 'intern/ghost/intern/GHOST_WindowWayland.cpp')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWayland.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWayland.cpp b/intern/ghost/intern/GHOST_WindowWayland.cpp index 00d75d62c9f..6cae60fc4b5 100644 --- a/intern/ghost/intern/GHOST_WindowWayland.cpp +++ b/intern/ghost/intern/GHOST_WindowWayland.cpp @@ -484,7 +484,10 @@ GHOST_WindowWayland::GHOST_WindowWayland(GHOST_SystemWayland *system, GHOST_TSuccess GHOST_WindowWayland::setWindowCursorGrab(GHOST_TGrabCursorMode mode) { - return m_system->setCursorGrab(mode, m_cursorGrab, m_cursorGrabInitPos, w->wl_surface); + if (m_system->window_cursor_grab_set(mode, m_cursorGrab, m_cursorGrabInitPos, w->wl_surface)) { + return GHOST_kSuccess; + } + return GHOST_kFailure; } GHOST_TSuccess GHOST_WindowWayland::setWindowCursorShape(GHOST_TStandardCursor shape) |