From a7334db09b7043db76d6a93cd4fa4832f14f6c6a Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Wed, 8 Jan 2025 18:10:02 +0100 Subject: [PATCH] Fix #70246: Don't Clear Tooltips on Timer Events While processing handlers we are currently clearing tooltips if we process any keymap handlers. This behavior was added in 8f8e91987b so that tooltips didn't remain showing after operators started like walk navigation. However this keeps any tooltips from showing while animation is playing. This PR just alters the clearing to not do so if the event is from a timer. That way we clear tooltips only for deliberate interactive actions. Pull Request: https://projects.blender.org/blender/blender/pulls/132539 --- source/blender/windowmanager/intern/wm_event_system.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/windowmanager/intern/wm_event_system.cc b/source/blender/windowmanager/intern/wm_event_system.cc index 091a75c13b2..146116547a7 100644 --- a/source/blender/windowmanager/intern/wm_event_system.cc +++ b/source/blender/windowmanager/intern/wm_event_system.cc @@ -3411,7 +3411,7 @@ static eHandlerActionFlag wm_handlers_do_intern(bContext *C, /* Clear the tool-tip whenever a key binding is handled, without this tool-tips * are kept when a modal operators starts (annoying but otherwise harmless). */ - if (action & WM_HANDLER_BREAK) { + if (action & WM_HANDLER_BREAK && !ISTIMER(event->type)) { /* Window may be gone after file read. */ if (CTX_wm_window(C) != nullptr) { WM_tooltip_clear(C, CTX_wm_window(C));