Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 646 Lines • ▼ Show 20 Line(s) | 642 | if (m_xdgDecoration) { | |||
---|---|---|---|---|---|
647 | } | 647 | } | ||
648 | } | 648 | } | ||
649 | getShadow(); | 649 | getShadow(); | ||
650 | if (check_workspace_pos) | 650 | if (check_workspace_pos) | ||
651 | checkWorkspacePosition(oldgeom, -2, oldClientGeom); | 651 | checkWorkspacePosition(oldgeom, -2, oldClientGeom); | ||
652 | blockGeometryUpdates(false); | 652 | blockGeometryUpdates(false); | ||
653 | } | 653 | } | ||
654 | 654 | | |||
655 | void ShellClient::setGeometry(int x, int y, int w, int h, ForceGeometry_t force) | 655 | void ShellClient::setGeometry(const QRect &rect, ForceGeometry_t force) | ||
656 | { | 656 | { | ||
657 | const QRect newGeometry = rules()->checkGeometry(QRect(x, y, w, h)); | 657 | const QRect newGeometry = rules()->checkGeometry(rect); | ||
658 | 658 | | |||
659 | if (areGeometryUpdatesBlocked()) { | 659 | if (areGeometryUpdatesBlocked()) { | ||
660 | // when the GeometryUpdateBlocker exits the current geom is passed to setGeometry | 660 | // when the GeometryUpdateBlocker exits the current geom is passed to setGeometry | ||
661 | // thus we need to set it here. | 661 | // thus we need to set it here. | ||
662 | geom = newGeometry; | 662 | geom = newGeometry; | ||
663 | if (pendingGeometryUpdate() == PendingGeometryForced) | 663 | if (pendingGeometryUpdate() == PendingGeometryForced) | ||
664 | {} // maximum, nothing needed | 664 | {} // maximum, nothing needed | ||
665 | else if (force == ForceGeometrySet) | 665 | else if (force == ForceGeometrySet) | ||
▲ Show 20 Lines • Show All 1354 Lines • Show Last 20 Lines |