# HG changeset patch # User Jonathan G Rennison # Date 2021-04-05 11:13:56 # Node ID 4a1127d92c6e62fb19464ebff12915acfb2f13e5 # Parent 2a5e6035392dbb5f68f3b29d6765a417a6a4ddeb Fix: Viewport drag tooltip flickering when dragging outside window diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -782,7 +782,7 @@ void GuiShowTooltips(Window *parent, Str { DeleteWindowById(WC_TOOLTIPS, 0); - if (str == STR_NULL) return; + if (str == STR_NULL || !_cursor.in_window) return; new TooltipsWindow(parent, str, paramcount, params, close_tooltip); }