mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 15:50:45 +00:00
Ensure cursor is visible when EditorSpinSlider exits the tree
Supersedes and closes #22581.
This commit is contained in:
parent
20379119c3
commit
74bf67c3a6
@ -155,7 +155,9 @@ void EditorSpinSlider::_grabber_gui_input(const Ref<InputEvent> &p_event) {
|
||||
|
||||
void EditorSpinSlider::_notification(int p_what) {
|
||||
|
||||
if (p_what == MainLoop::NOTIFICATION_WM_FOCUS_OUT || p_what == MainLoop::NOTIFICATION_WM_FOCUS_IN) {
|
||||
if (p_what == MainLoop::NOTIFICATION_WM_FOCUS_OUT ||
|
||||
p_what == MainLoop::NOTIFICATION_WM_FOCUS_IN ||
|
||||
p_what == NOTIFICATION_EXIT_TREE) {
|
||||
if (grabbing_spinner) {
|
||||
Input::get_singleton()->set_mouse_mode(Input::MOUSE_MODE_VISIBLE);
|
||||
grabbing_spinner = false;
|
||||
|
Loading…
Reference in New Issue
Block a user