Changeset View
Changeset View
Standalone View
Standalone View
decorations/settings.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 50 | [parent](uint previous, uint current) { | |||
---|---|---|---|---|---|
51 | if (previous != 1 && current != 1) { | 51 | if (previous != 1 && current != 1) { | ||
52 | return; | 52 | return; | ||
53 | } | 53 | } | ||
54 | emit parent->onAllDesktopsAvailableChanged(current > 1); | 54 | emit parent->onAllDesktopsAvailableChanged(current > 1); | ||
55 | } | 55 | } | ||
56 | ); | 56 | ); | ||
57 | // prevent changes in Decoration due to Compositor being destroyed | 57 | // prevent changes in Decoration due to Compositor being destroyed | ||
58 | connect(Compositor::self(), &Compositor::aboutToDestroy, this, | 58 | connect(Compositor::self(), &Compositor::aboutToDestroy, this, | ||
59 | [this, c] { | 59 | [c] { disconnect(c); } | ||
60 | disconnect(c); | | |||
61 | } | | |||
62 | ); | 60 | ); | ||
63 | connect(Workspace::self(), &Workspace::configChanged, this, &SettingsImpl::readSettings); | 61 | connect(Workspace::self(), &Workspace::configChanged, this, &SettingsImpl::readSettings); | ||
64 | connect(DecorationBridge::self(), &DecorationBridge::metaDataLoaded, this, &SettingsImpl::readSettings); | 62 | connect(DecorationBridge::self(), &DecorationBridge::metaDataLoaded, this, &SettingsImpl::readSettings); | ||
65 | } | 63 | } | ||
66 | 64 | | |||
67 | SettingsImpl::~SettingsImpl() = default; | 65 | SettingsImpl::~SettingsImpl() = default; | ||
68 | 66 | | |||
69 | bool SettingsImpl::isAlphaChannelSupported() const | 67 | bool SettingsImpl::isAlphaChannelSupported() const | ||
▲ Show 20 Lines • Show All 137 Lines • Show Last 20 Lines |