Fix viewport drag tooltips not being removed when dragging over other windows

This commit is contained in:
Jonathan G Rennison
2021-04-05 12:30:58 +01:00
parent 638d4cdbe0
commit e3d9cce3ae
3 changed files with 10 additions and 3 deletions

View File

@@ -842,6 +842,12 @@ struct TooltipsWindow : public Window
this->delete_next_mouse_loop = true;
}
break;
case TCC_EXIT_VIEWPORT: {
Window *w = FindWindowFromPt(_cursor.pos.x, _cursor.pos.y);
if (w == nullptr || IsPtInWindowViewport(w, _cursor.pos.x, _cursor.pos.y) == nullptr) this->delete_next_mouse_loop = true;
break;
}
}
}
};