Withdraw partial maximization state when resizing partially maximized client but moveResizeMaximizedWindows() isn't true

REVIEW: 103683
BUG: 290990
FIXED-IN: 4.8
This commit is contained in:
Thomas Lübking 2012-01-12 18:52:12 +01:00
parent 07685da24e
commit d57a0a05ab

View file

@ -2567,7 +2567,7 @@ bool Client::startMoveResize()
// 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.
if (maximizeMode() != MaximizeRestore && options->moveResizeMaximizedWindows()) {
if (maximizeMode() != MaximizeRestore && (maximizeMode() != MaximizeFull || options->moveResizeMaximizedWindows())) {
// allow moveResize, but unset maximization state in resize case
if (mode != PositionCenter) { // means "isResize()" but moveResizeMode = true is set below
geom_restore = geom_pretile = geometry(); // "restore" to current geometry