From 75e06730a861544c8fa71f9b0af51eda8a1750d4 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Wed, 15 Oct 2025 03:14:17 +0200 Subject: [PATCH] Fix #147684: Close Tooltips When Out of Menu Bounds With #145523 it is possible to have a tooltip open on a menu or popup and it will not go away when expected. This PR removes any tooltips if you move out of the menu item bounds. Pull Request: https://projects.blender.org/blender/blender/pulls/148099 --- source/blender/editors/interface/interface_handlers.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/editors/interface/interface_handlers.cc b/source/blender/editors/interface/interface_handlers.cc index ef6fda03aaf..4dcce033654 100644 --- a/source/blender/editors/interface/interface_handlers.cc +++ b/source/blender/editors/interface/interface_handlers.cc @@ -11223,6 +11223,10 @@ static int ui_handle_menu_event(bContext *C, if ((inside == false) && (menu->menuretval == 0)) { uiSafetyRct *saferct = static_cast(block->saferct.first); + if (event->type == MOUSEMOVE) { + WM_tooltip_clear(C, win); + } + if (ELEM(event->type, LEFTMOUSE, MIDDLEMOUSE, RIGHTMOUSE)) { if (ELEM(event->val, KM_PRESS, KM_DBL_CLICK)) { if ((is_parent_menu == false) && (U.uiflag & USER_MENUOPENAUTO) == 0) {