summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-25 14:04:40 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-25 14:04:40 +0100
commit986a4279fad538cba4164dfb747d7884a432b45c (patch)
treefce3c561d684167d805de08619b1809edd72264c /scene
parent34df77285c68dd11c43571c90d41d803f2f97f5a (diff)
parentaa9b5b917fdb93ced28478c6c08eb11d69249052 (diff)
Merge pull request #68447 from Grimmr/clean-tooltips-on-WM-focus-off
Viewport cancels existing tooltip when window looses focus
Diffstat (limited to 'scene')
-rw-r--r--scene/main/viewport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 345d5de937..f58bf868ad 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -492,6 +492,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();