Changeset View
Changeset View
Standalone View
Standalone View
decorations/decoratedclient.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 58 | [decoratedClient, this]() { | |||
---|---|---|---|---|---|
62 | const auto oldSize = m_clientSize; | 62 | const auto oldSize = m_clientSize; | ||
63 | m_clientSize = m_client->clientSize(); | 63 | m_clientSize = m_client->clientSize(); | ||
64 | if (oldSize.width() != m_clientSize.width()) { | 64 | if (oldSize.width() != m_clientSize.width()) { | ||
65 | emit decoratedClient->widthChanged(m_clientSize.width()); | 65 | emit decoratedClient->widthChanged(m_clientSize.width()); | ||
66 | } | 66 | } | ||
67 | if (oldSize.height() != m_clientSize.height()) { | 67 | if (oldSize.height() != m_clientSize.height()) { | ||
68 | emit decoratedClient->heightChanged(m_clientSize.height()); | 68 | emit decoratedClient->heightChanged(m_clientSize.height()); | ||
69 | } | 69 | } | ||
70 | emit decoratedClient->sizeChanged(m_clientSize); | ||||
70 | } | 71 | } | ||
71 | ); | 72 | ); | ||
72 | connect(client, &AbstractClient::desktopChanged, this, | 73 | connect(client, &AbstractClient::desktopChanged, this, | ||
73 | [decoratedClient, client]() { | 74 | [decoratedClient, client]() { | ||
74 | emit decoratedClient->onAllDesktopsChanged(client->isOnAllDesktops()); | 75 | emit decoratedClient->onAllDesktopsChanged(client->isOnAllDesktops()); | ||
75 | } | 76 | } | ||
76 | ); | 77 | ); | ||
77 | connect(client, &AbstractClient::captionChanged, this, | 78 | connect(client, &AbstractClient::captionChanged, this, | ||
▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 268 | { | |||
268 | return m_clientSize.width(); | 269 | return m_clientSize.width(); | ||
269 | } | 270 | } | ||
270 | 271 | | |||
271 | int DecoratedClientImpl::height() const | 272 | int DecoratedClientImpl::height() const | ||
272 | { | 273 | { | ||
273 | return m_clientSize.height(); | 274 | return m_clientSize.height(); | ||
274 | } | 275 | } | ||
275 | 276 | | |||
277 | QSize DecoratedClientImpl::size() const | ||||
278 | { | ||||
279 | return m_clientSize; | ||||
280 | } | ||||
281 | | ||||
276 | bool DecoratedClientImpl::isMaximizedVertically() const | 282 | bool DecoratedClientImpl::isMaximizedVertically() const | ||
277 | { | 283 | { | ||
278 | return m_client->requestedMaximizeMode() & MaximizeVertical; | 284 | return m_client->requestedMaximizeMode() & MaximizeVertical; | ||
279 | } | 285 | } | ||
280 | 286 | | |||
281 | bool DecoratedClientImpl::isMaximized() const | 287 | bool DecoratedClientImpl::isMaximized() const | ||
282 | { | 288 | { | ||
283 | return isMaximizedHorizontally() && isMaximizedVertically(); | 289 | return isMaximizedHorizontally() && isMaximizedVertically(); | ||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |