Changeset View
Changeset View
Standalone View
Standalone View
geometry.cpp
Show First 20 Lines • Show All 876 Lines • ▼ Show 20 Line(s) | 818 | } | |||
---|---|---|---|---|---|
877 | // } | 877 | // } | ||
878 | 878 | | |||
879 | moveResizeGeom = QRect(QPoint(newcx, newcy), QPoint(newrx, newry)); | 879 | moveResizeGeom = QRect(QPoint(newcx, newcy), QPoint(newrx, newry)); | ||
880 | } | 880 | } | ||
881 | return moveResizeGeom; | 881 | return moveResizeGeom; | ||
882 | } | 882 | } | ||
883 | 883 | | |||
884 | /** | 884 | /** | ||
885 | * Marks the client as being moved around by the user. | 885 | * Marks the client as being moved or resized by the user. | ||
886 | **/ | 886 | **/ | ||
887 | void Workspace::setClientIsMoving(AbstractClient *c) | 887 | void Workspace::setMoveResizeClient(AbstractClient *c) | ||
888 | { | 888 | { | ||
889 | Q_ASSERT(!c || !movingClient); // Catch attempts to move a second | 889 | Q_ASSERT(!c || !movingClient); // Catch attempts to move a second | ||
890 | // window while still moving the first one. | 890 | // window while still moving the first one. | ||
891 | movingClient = c; | 891 | movingClient = c; | ||
892 | if (movingClient) | 892 | if (movingClient) | ||
893 | ++block_focus; | 893 | ++block_focus; | ||
894 | else | 894 | else | ||
895 | --block_focus; | 895 | --block_focus; | ||
▲ Show 20 Lines • Show All 1762 Lines • ▼ Show 20 Line(s) | 2657 | if (isFullScreen() && (screens()->count() < 2 || !isMovableAcrossScreens())) | |||
2658 | return false; | 2658 | return false; | ||
2659 | if (!doStartMoveResize()) { | 2659 | if (!doStartMoveResize()) { | ||
2660 | return false; | 2660 | return false; | ||
2661 | } | 2661 | } | ||
2662 | 2662 | | |||
2663 | invalidateDecorationDoubleClickTimer(); | 2663 | invalidateDecorationDoubleClickTimer(); | ||
2664 | 2664 | | |||
2665 | setMoveResize(true); | 2665 | setMoveResize(true); | ||
2666 | workspace()->setClientIsMoving(this); | 2666 | workspace()->setMoveResizeClient(this); | ||
2667 | 2667 | | |||
2668 | const Position mode = moveResizePointerMode(); | 2668 | const Position mode = moveResizePointerMode(); | ||
2669 | if (mode != PositionCenter) { // means "isResize()" but moveResizeMode = true is set below | 2669 | if (mode != PositionCenter) { // means "isResize()" but moveResizeMode = true is set below | ||
2670 | if (maximizeMode() == MaximizeFull) { // partial is cond. reset in finishMoveResize | 2670 | if (maximizeMode() == MaximizeFull) { // partial is cond. reset in finishMoveResize | ||
2671 | setGeometryRestore(geometry()); // "restore" to current geometry | 2671 | setGeometryRestore(geometry()); // "restore" to current geometry | ||
2672 | setMaximize(false, false); | 2672 | setMaximize(false, false); | ||
2673 | } | 2673 | } | ||
2674 | } | 2674 | } | ||
▲ Show 20 Lines • Show All 839 Lines • Show Last 20 Lines |