From 0b9cfffe1ae6d62366098f1f1ca19ce7eb224bd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 23 May 2015 10:24:09 +0200 Subject: [PATCH] checkWorkspacePosition: Don't adjust to shaded sz since the client is currently empty, we'll resort to client hints, ie. effectively resize windows when shading them (setGeometry and plainResize have extra checks on whether this geometry is only the decoration height to not smear client_size) REVIEW: 123882 BUG: 348064 --- geometry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index dbcb480198..2e259bc879 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1216,7 +1216,8 @@ void Client::checkWorkspacePosition(QRect oldGeometry, int oldDesktop) checkOffscreenPosition(&newGeom, screenArea); // Obey size hints. TODO: We really should make sure it stays in the right place - newGeom.setSize(adjustedSize(newGeom.size())); + if (!isShade()) + newGeom.setSize(adjustedSize(newGeom.size())); if (newGeom != geometry()) setGeometry(newGeom);