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
icc-effect-5.14.5
Luboš Luňák 2002-09-24 17:18:02 +00:00
parent eb23058aef
commit 827740d489
1 changed files with 3 additions and 2 deletions

View File

@ -2063,10 +2063,11 @@ void Client::maximize( MaximizeMode m)
} break; } break;
case MaximizeFull: { 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 // hide right and left border of maximized windows
if ( !options->moveResizeMaximizedWindows ) { if ( !options->moveResizeMaximizedWindows && adjSize == clientArea.size()) {
if ( r.left() == 0 ) if ( r.left() == 0 )
r.setLeft( r.left() - windowWrapper()->x() ); r.setLeft( r.left() - windowWrapper()->x() );
if ( r.right() == workspace()->geometry().right() ) if ( r.right() == workspace()->geometry().right() )