From 827740d489de242c54384a784c459a2661da0331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 24 Sep 2002 17:18:02 +0000 Subject: [PATCH] Fix #47239 - if the window has specified resize increments, don't remove left/right border for it when it's maximized, that would resize the window svn path=/trunk/kdebase/kwin/; revision=180151 --- client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 975178e4ca..627e002c34 100644 --- a/client.cpp +++ b/client.cpp @@ -2063,10 +2063,11 @@ void Client::maximize( MaximizeMode m) } break; case MaximizeFull: { - QRect r = QRect(clientArea.topLeft(), adjustedSize(clientArea.size())); + QSize adjSize = adjustedSize(clientArea.size()); + QRect r = QRect(clientArea.topLeft(), adjSize); // hide right and left border of maximized windows - if ( !options->moveResizeMaximizedWindows ) { + if ( !options->moveResizeMaximizedWindows && adjSize == clientArea.size()) { if ( r.left() == 0 ) r.setLeft( r.left() - windowWrapper()->x() ); if ( r.right() == workspace()->geometry().right() )