Changeset View
Changeset View
Standalone View
Standalone View
geometry.cpp
Show First 20 Lines • Show All 2616 Lines • ▼ Show 20 Line(s) | 2610 | { | |||
---|---|---|---|---|---|
2617 | else { | 2617 | else { | ||
2618 | const QRect &moveResizeGeom = moveResizeGeometry(); | 2618 | const QRect &moveResizeGeom = moveResizeGeometry(); | ||
2619 | if (wasResize) { | 2619 | if (wasResize) { | ||
2620 | const bool restoreH = maximizeMode() == MaximizeHorizontal && | 2620 | const bool restoreH = maximizeMode() == MaximizeHorizontal && | ||
2621 | moveResizeGeom.width() != initialMoveResizeGeometry().width(); | 2621 | moveResizeGeom.width() != initialMoveResizeGeometry().width(); | ||
2622 | const bool restoreV = maximizeMode() == MaximizeVertical && | 2622 | const bool restoreV = maximizeMode() == MaximizeVertical && | ||
2623 | moveResizeGeom.height() != initialMoveResizeGeometry().height(); | 2623 | moveResizeGeom.height() != initialMoveResizeGeometry().height(); | ||
2624 | if (restoreH || restoreV) { | 2624 | if (restoreH || restoreV) { | ||
2625 | changeMaximize(restoreV, restoreH, false); | 2625 | changeMaximize(restoreH, restoreV, false); | ||
2626 | } | 2626 | } | ||
2627 | } | 2627 | } | ||
2628 | setGeometry(moveResizeGeom); | 2628 | setGeometry(moveResizeGeom); | ||
2629 | } | 2629 | } | ||
2630 | checkScreen(); // needs to be done because clientFinishUserMovedResized has not yet re-activated online alignment | 2630 | checkScreen(); // needs to be done because clientFinishUserMovedResized has not yet re-activated online alignment | ||
2631 | if (screen() != moveResizeStartScreen()) { | 2631 | if (screen() != moveResizeStartScreen()) { | ||
2632 | workspace()->sendClientToScreen(this, screen()); // checks rule validity | 2632 | workspace()->sendClientToScreen(this, screen()); // checks rule validity | ||
2633 | if (maximizeMode() != MaximizeRestore) | 2633 | if (maximizeMode() != MaximizeRestore) | ||
▲ Show 20 Lines • Show All 763 Lines • Show Last 20 Lines |