diff options
author | grimmr <grimms767@gmail.com> | 2022-11-09 11:48:19 +0000 |
---|---|---|
committer | grimmr <grimms767@gmail.com> | 2022-11-25 09:44:04 +0000 |
commit | aa9b5b917fdb93ced28478c6c08eb11d69249052 (patch) | |
tree | f3fa57ec13df8c33d9754509423d14b76c0fdfc1 | |
parent | e25d9281d4f6f0b5b4d972b25cddaa1009ad1d26 (diff) |
Viewport cancels existing tooltip when window looses focus
fixes #68197
when NOTIFICATION_WM_WINDOW_FOCUS_OUT is recieved by a viewport it will now call
_gui_cancel_tooltip() to avoid it hanging around after the mouse events stop
coming in
-rw-r--r-- | scene/main/viewport.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index f8b0a66a71..85768b315d 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -491,6 +491,7 @@ void Viewport::_notification(int p_what) { } break; case NOTIFICATION_WM_WINDOW_FOCUS_OUT: { + _gui_cancel_tooltip(); _drop_physics_mouseover(); if (gui.mouse_focus && !gui.forced_mouse_focus) { _drop_mouse_focus(); |