Ensure cursor is visible when EditorSpinSlider exits the tree
Supersedes and closes #22581.
This commit is contained in:
parent
20379119c3
commit
74bf67c3a6
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue