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);