Fix viewport drag tooltips not being removed when dragging over other windows
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user