If both quick maximization and "allow moving and resizing of maximized

windows" are enabled then don't instantly restore maximized windows when
they are dragged.
BUG: 219952

svn path=/trunk/KDE/kdebase/workspace/; revision=1065887
This commit is contained in:
Lucas Murray 2009-12-24 16:30:07 +00:00
parent b602adb21c
commit 187d26a641

View file

@ -2739,7 +2739,8 @@ bool Client::startMoveResize()
move_resize_grab_window = None;
return false;
}
if( maximizeMode() == MaximizeFull && options->electricBorderMaximize() )
if( maximizeMode() == MaximizeFull && options->electricBorderMaximize() &&
!options->moveResizeMaximizedWindows() )
{ // If we have quick maximization enabled then it's safe to automatically restore windows
// when starting a move as the user can undo their action by moving the window back to
// the top of the screen. When the setting is disabled then doing so is confusing.