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
This commit is contained in:
parent
eb23058aef
commit
827740d489
1 changed files with 3 additions and 2 deletions
|
@ -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() )
|
||||
|
|
Loading…
Reference in a new issue