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
This commit is contained in:
Thomas Lübking 2015-05-23 10:24:09 +02:00
parent 7f71c89111
commit 0b9cfffe1a

View file

@ -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);