From b26ef9302a661d447e7764f638f96ac7cc0c7608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 6 Nov 2014 22:10:56 +0100 Subject: [PATCH] don't restore unrestorable window sizes on Q'unmax BUG: 340600 REVIEW: 121022 --- events.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/events.cpp b/events.cpp index fcd5eca0b7..441daa5382 100644 --- a/events.cpp +++ b/events.cpp @@ -1417,7 +1417,8 @@ bool Client::motionNotifyEvent(xcb_window_t w, int state, int x, int y, int x_ro setQuickTileMode(QuickTileNone); moveOffset = QPoint(double(moveOffset.x()) / double(oldGeo.width()) * double(geom_restore.width()), double(moveOffset.y()) / double(oldGeo.height()) * double(geom_restore.height())); - moveResizeGeom = geom_restore; + if (rules()->checkMaximize(MaximizeRestore) == MaximizeRestore) + moveResizeGeom = geom_restore; handleMoveResize(x, y, x_root, y_root); // fix position } else if (quick_tile_mode == QuickTileNone && isResizable()) { checkQuickTilingMaximizationZones(x_root, y_root);