From aa9b5b917fdb93ced28478c6c08eb11d69249052 Mon Sep 17 00:00:00 2001 From: grimmr Date: Wed, 9 Nov 2022 11:48:19 +0000 Subject: [PATCH] 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 --- scene/main/viewport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index f8b0a66a719..85768b315dc 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();