don't restore unrestorable window sizes on Q'unmax

BUG: 340600
REVIEW: 121022
This commit is contained in:
Thomas Lübking 2014-11-06 22:10:56 +01:00
parent ec8f7e1fac
commit b26ef9302a

View file

@ -1417,7 +1417,8 @@ bool Client::motionNotifyEvent(xcb_window_t w, int state, int x, int y, int x_ro
setQuickTileMode(QuickTileNone); setQuickTileMode(QuickTileNone);
moveOffset = QPoint(double(moveOffset.x()) / double(oldGeo.width()) * double(geom_restore.width()), moveOffset = QPoint(double(moveOffset.x()) / double(oldGeo.width()) * double(geom_restore.width()),
double(moveOffset.y()) / double(oldGeo.height()) * double(geom_restore.height())); 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 handleMoveResize(x, y, x_root, y_root); // fix position
} else if (quick_tile_mode == QuickTileNone && isResizable()) { } else if (quick_tile_mode == QuickTileNone && isResizable()) {
checkQuickTilingMaximizationZones(x_root, y_root); checkQuickTilingMaximizationZones(x_root, y_root);