From bea070235cc06d3d610cc7c6b91781db89ca7ac8 Mon Sep 17 00:00:00 2001 From: Alex Docauer Date: Thu, 22 Aug 2024 22:12:35 -0700 Subject: [PATCH] Cancel tooltips when mouse leaves window This is a backport of 807431c49a6b33ecc88f8d4ebcb3b2f359591b1c. --- scene/main/viewport.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 74680b195d03..844450884b2c 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -408,6 +408,7 @@ void Viewport::_notification(int p_what) { gui.mouse_in_window = false; _drop_physics_mouseover(); _drop_mouse_over(); + _gui_cancel_tooltip(); // When the mouse exits the window, we want to end mouse_over, but // not mouse_focus, because, for example, we want to continue // dragging a scrollbar even if the mouse has left the window.