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,6 +1417,7 @@ 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()));
if (rules()->checkMaximize(MaximizeRestore) == MaximizeRestore)
moveResizeGeom = geom_restore;
handleMoveResize(x, y, x_root, y_root); // fix position
} else if (quick_tile_mode == QuickTileNone && isResizable()) {