Changeset View
Changeset View
Standalone View
Standalone View
abstract_client.cpp
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | 79 | if (isOnScreenDisplay() && !geometry().isEmpty() && old.size() != geometry().size()) { | |||
---|---|---|---|---|---|
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 | | |||
88 | connect(this, &AbstractClient::paddingChanged, this, [this]() { | ||||
89 | m_visibleRectBeforeGeometryUpdate = visibleRect(); | ||||
90 | }); | ||||
graesslin: why are you putting that into a lambda? | |||||
mart: it's not a slot | |||||
graesslin: so what? you can connect to any method | |||||
91 | | ||||
88 | connect(ApplicationMenu::self(), &ApplicationMenu::applicationMenuEnabledChanged, this, [this] { | 92 | connect(ApplicationMenu::self(), &ApplicationMenu::applicationMenuEnabledChanged, this, [this] { | ||
89 | emit hasApplicationMenuChanged(hasApplicationMenu()); | 93 | emit hasApplicationMenuChanged(hasApplicationMenu()); | ||
90 | }); | 94 | }); | ||
91 | } | 95 | } | ||
92 | 96 | | |||
93 | AbstractClient::~AbstractClient() | 97 | AbstractClient::~AbstractClient() | ||
94 | { | 98 | { | ||
95 | assert(m_blockGeometryUpdates == 0); | 99 | assert(m_blockGeometryUpdates == 0); | ||
▲ Show 20 Lines • Show All 1639 Lines • Show Last 20 Lines |
why are you putting that into a lambda?