From 9719d6c5a2372fa2db2ea84471c0211c773cb697 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 19 Apr 2021 13:12:01 +0300 Subject: [PATCH] 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. --- src/layershellv1integration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layershellv1integration.cpp b/src/layershellv1integration.cpp index 147cf6c5c7..a55f961e07 100644 --- a/src/layershellv1integration.cpp +++ b/src/layershellv1integration.cpp @@ -103,7 +103,7 @@ static void rearrangeLayer(const QList &clients, QRect *wo QRect bounds; if (shellSurface->exclusiveZone() == -1) { - bounds = workspace()->clientArea(ScreenArea, client); + bounds = client->output()->geometry(); } else { bounds = *workArea; }