Changeset View
Changeset View
Standalone View
Standalone View
composite.cpp
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | 122 | Compositor::Compositor(QObject* workspace) | |||
---|---|---|---|---|---|
126 | , vBlankInterval(0) | 126 | , vBlankInterval(0) | ||
127 | , fpsInterval(0) | 127 | , fpsInterval(0) | ||
128 | , m_timeSinceLastVBlank(0) | 128 | , m_timeSinceLastVBlank(0) | ||
129 | , m_scene(nullptr) | 129 | , m_scene(nullptr) | ||
130 | , m_bufferSwapPending(false) | 130 | , m_bufferSwapPending(false) | ||
131 | , m_composeAtSwapCompletion(false) | 131 | , m_composeAtSwapCompletion(false) | ||
132 | { | 132 | { | ||
133 | connect(options, &Options::configChanged, this, &Compositor::configChanged); | 133 | connect(options, &Options::configChanged, this, &Compositor::configChanged); | ||
134 | connect(options, &Options::animationSpeedChanged, this, &Compositor::configChanged); | ||||
zzag: Oh, this one perhaps needs to be configChanged. We don't want to resume compositing if it's… | |||||
134 | 135 | | |||
135 | m_monotonicClock.start(); | 136 | m_monotonicClock.start(); | ||
136 | 137 | | |||
137 | // 2 sec which should be enough to restart the compositor. | 138 | // 2 sec which should be enough to restart the compositor. | ||
138 | static const int compositorLostMessageDelay = 2000; | 139 | static const int compositorLostMessageDelay = 2000; | ||
139 | 140 | | |||
140 | m_releaseSelectionTimer.setSingleShot(true); | 141 | m_releaseSelectionTimer.setSingleShot(true); | ||
141 | m_releaseSelectionTimer.setInterval(compositorLostMessageDelay); | 142 | m_releaseSelectionTimer.setInterval(compositorLostMessageDelay); | ||
▲ Show 20 Lines • Show All 907 Lines • Show Last 20 Lines |
Oh, this one perhaps needs to be configChanged. We don't want to resume compositing if it's suspended at the moment.