Fix popup menu size when multiple windows UI is disabled

Fixed regression introduced in ed595eb6b1

Reported:
- https://community.aseprite.org/t/12497
This commit is contained in:
David Capello 2022-01-12 22:21:04 -03:00
parent c780ff3e75
commit 14a9327573

View File

@ -365,6 +365,8 @@ void Menu::showPopup(const gfx::Point& pos,
menubox->setMenu(this); menubox->setMenu(this);
menubox->startFilteringMouseDown(); menubox->startFilteringMouseDown();
window->remapWindow();
fit_bounds(parentDisplay, fit_bounds(parentDisplay,
window.get(), window.get(),
gfx::Rect(pos, window->size()), gfx::Rect(pos, window->size()),