Changeset View
Changeset View
Standalone View
Standalone View
decorations/decoratedclient.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
49 | { | 49 | { | ||
50 | createRenderer(); | 50 | createRenderer(); | ||
51 | client->setDecoratedClient(QPointer<DecoratedClientImpl>(this)); | 51 | client->setDecoratedClient(QPointer<DecoratedClientImpl>(this)); | ||
52 | connect(client, &AbstractClient::activeChanged, this, | 52 | connect(client, &AbstractClient::activeChanged, this, | ||
53 | [decoratedClient, client]() { | 53 | [decoratedClient, client]() { | ||
54 | emit decoratedClient->activeChanged(client->isActive()); | 54 | emit decoratedClient->activeChanged(client->isActive()); | ||
55 | } | 55 | } | ||
56 | ); | 56 | ); | ||
57 | connect(client, &AbstractClient::geometryChanged, this, | 57 | connect(client, &AbstractClient::frameGeometryChanged, this, | ||
58 | [decoratedClient, this]() { | 58 | [decoratedClient, this]() { | ||
59 | if (m_client->clientSize() == m_clientSize) { | 59 | if (m_client->clientSize() == m_clientSize) { | ||
60 | return; | 60 | return; | ||
61 | } | 61 | } | ||
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()); | ||
▲ Show 20 Lines • Show All 281 Lines • Show Last 20 Lines |