From 508761e0cd3685f65d64718d72d5627b12968cd8 Mon Sep 17 00:00:00 2001 From: Guilherme Felipe Date: Mon, 29 Jul 2019 13:23:30 -0300 Subject: Fix set_default_cursor_shape always sending motion event --- main/input_default.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main') diff --git a/main/input_default.cpp b/main/input_default.cpp index caa5c10518..5ba98c20e2 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -629,6 +629,10 @@ Input::CursorShape InputDefault::get_default_cursor_shape() const { } void InputDefault::set_default_cursor_shape(CursorShape p_shape) { + + if (default_shape == p_shape) + return; + default_shape = p_shape; // The default shape is set in Viewport::_gui_input_event. To instantly // see the shape in the viewport we need to trigger a mouse motion event. -- cgit v1.2.3