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:
parent
7dddcf202b
commit
9719d6c5a2
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ static void rearrangeLayer(const QList<LayerShellV1Client *> &clients, QRect *wo
|
||||||
|
|
||||||
QRect bounds;
|
QRect bounds;
|
||||||
if (shellSurface->exclusiveZone() == -1) {
|
if (shellSurface->exclusiveZone() == -1) {
|
||||||
bounds = workspace()->clientArea(ScreenArea, client);
|
bounds = client->output()->geometry();
|
||||||
} else {
|
} else {
|
||||||
bounds = *workArea;
|
bounds = *workArea;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue