Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
71 | connect(this, &AbstractClient::paletteChanged, this, &AbstractClient::triggerDecorationRepaint); | 71 | connect(this, &AbstractClient::paletteChanged, this, &AbstractClient::triggerDecorationRepaint); | ||
72 | 72 | | |||
73 | connect(Decoration::DecorationBridge::self(), &QObject::destroyed, this, &AbstractClient::destroyDecoration); | 73 | connect(Decoration::DecorationBridge::self(), &QObject::destroyed, this, &AbstractClient::destroyDecoration); | ||
74 | 74 | | |||
75 | // replace on-screen-display on size changes | 75 | // replace on-screen-display on size changes | ||
76 | connect(this, &AbstractClient::geometryShapeChanged, this, | 76 | connect(this, &AbstractClient::geometryShapeChanged, this, | ||
77 | [this] (Toplevel *c, const QRect &old) { | 77 | [this] (Toplevel *c, const QRect &old) { | ||
78 | Q_UNUSED(c) | 78 | Q_UNUSED(c) | ||
79 | if (isOnScreenDisplay() && !geometry().isEmpty() && old.size() != geometry().size()) { | 79 | if (isOnScreenDisplay() && !geometry().isEmpty() && old.size() != geometry().size() && !isInitialPositionSet()) { | ||
80 | GeometryUpdatesBlocker blocker(this); | 80 | GeometryUpdatesBlocker blocker(this); | ||
81 | QRect area = workspace()->clientArea(PlacementArea, Screens::self()->current(), desktop()); | 81 | QRect area = workspace()->clientArea(PlacementArea, Screens::self()->current(), desktop()); | ||
82 | Placement::self()->place(this, area); | 82 | Placement::self()->place(this, area); | ||
83 | setGeometryRestore(geometry()); | 83 | setGeometryRestore(geometry()); | ||
84 | } | 84 | } | ||
85 | } | 85 | } | ||
86 | ); | 86 | ); | ||
87 | 87 | | |||
▲ Show 20 Lines • Show All 1713 Lines • Show Last 20 Lines |