Don't let tooltips intercept mouse hover

This commit is contained in:
dP
2023-03-24 02:11:30 +04:00
parent bd5a4db481
commit b16d3af88a
3 changed files with 34 additions and 1 deletions

View File

@@ -43,6 +43,7 @@
#include "citymania/cm_client_list_gui.hpp"
#include "citymania/cm_hotkeys.hpp"
#include "citymania/cm_tooltips.hpp"
#include "safeguards.h"
@@ -1972,7 +1973,7 @@ static EventState HandleMouseDragDrop()
/** Report position of the mouse to the underlying window. */
static void HandleMouseOver()
{
Window *w = FindWindowFromPt(_cursor.pos.x, _cursor.pos.y);
Window *w = citymania::FindHoverableWindowFromPt(_cursor.pos.x, _cursor.pos.y);
/* We changed window, put an OnMouseOver event to the last window */
if (_mouseover_last_w != nullptr && _mouseover_last_w != w) {