summaryrefslogtreecommitdiff
path: root/platform/osx
diff options
context:
space:
mode:
authorGuilherme Felipe <guilhermefelipecgs@gmail.com>2018-09-17 11:37:54 -0300
committerGuilherme Felipe <guilhermefelipecgs@gmail.com>2018-09-17 11:37:54 -0300
commit360204e532345999f4d986cc77194c20d53a8cae (patch)
tree4311ffbbf20b9e0a76ab23fe249d5291e6133b19 /platform/osx
parentebd14a778d29e0de4904564a762358cbc2412303 (diff)
Fix Input::set_custom_mouse_cursor showing cursor when it's invisible
Diffstat (limited to 'platform/osx')
-rw-r--r--platform/osx/os_osx.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm
index b98113baeb..886ff4b332 100644
--- a/platform/osx/os_osx.mm
+++ b/platform/osx/os_osx.mm
@@ -1663,7 +1663,9 @@ void OS_OSX::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, c
cursors[p_shape] = cursor;
if (p_shape == cursor_shape) {
- [cursor set];
+ if (mouse_mode == MOUSE_MODE_VISIBLE || mouse_mode == MOUSE_MODE_CONFINED) {
+ [cursor set];
+ }
}
[imgrep release];