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