wayland: Use correct output when sending xdg_toplevel.configure_bounds

We should use the next output rather than the current output.
This commit is contained in:
Vlad Zahorodnii 2022-06-27 17:22:19 +03:00
parent 0be0e8a7b0
commit 6cc4b799f4

View file

@ -865,7 +865,7 @@ XdgSurfaceConfigure *XdgToplevelWindow::sendRoleConfigure() const
}
if (nextClientSize.isEmpty()) {
QSizeF bounds = workspace()->clientArea(PlacementArea, this, output()).size();
QSizeF bounds = workspace()->clientArea(PlacementArea, this, moveResizeOutput()).size();
bounds.rwidth() -= framePadding.width();
bounds.rheight() -= framePadding.height();
m_shellSurface->sendConfigureBounds(bounds.toSize());