wayland: Fix handling of exclusive zone of -1

We cannot use Workspace::clientArea() to get the geometry of the screen
as the clientArea() method needs a valid frame geometry. This is not the
case if the layer shell surface is being configured for the first time.
This commit is contained in:
Vlad Zahorodnii 2021-04-19 13:12:01 +03:00
parent 7dddcf202b
commit 9719d6c5a2

View file

@ -103,7 +103,7 @@ static void rearrangeLayer(const QList<LayerShellV1Client *> &clients, QRect *wo
QRect bounds;
if (shellSurface->exclusiveZone() == -1) {
bounds = workspace()->clientArea(ScreenArea, client);
bounds = client->output()->geometry();
} else {
bounds = *workArea;
}