Changeset View
Changeset View
Standalone View
Standalone View
composite.cpp
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 100 | Compositor::Compositor(QObject* workspace) | |||
---|---|---|---|---|---|
106 | , fpsInterval(0) | 106 | , fpsInterval(0) | ||
107 | , m_xrrRefreshRate(0) | 107 | , m_xrrRefreshRate(0) | ||
108 | , m_timeSinceLastVBlank(0) | 108 | , m_timeSinceLastVBlank(0) | ||
109 | , m_scene(NULL) | 109 | , m_scene(NULL) | ||
110 | , m_bufferSwapPending(false) | 110 | , m_bufferSwapPending(false) | ||
111 | , m_composeAtSwapCompletion(false) | 111 | , m_composeAtSwapCompletion(false) | ||
112 | { | 112 | { | ||
113 | qRegisterMetaType<Compositor::SuspendReason>("Compositor::SuspendReason"); | 113 | qRegisterMetaType<Compositor::SuspendReason>("Compositor::SuspendReason"); | ||
114 | connect(options, &Options::configChanged, this, &Compositor::slotConfigChanged); | 114 | connect(options, &Options::configChanged, this, &Compositor::slotConfigChanged); | ||
zzag: Oh, this one perhaps needs to be configChanged. We don't want to resume compositing if it's… | |||||
115 | connect(options, &Options::animationSpeedChanged, this, &Compositor::reinitialize); | ||||
115 | 116 | | |||
116 | m_monotonicClock.start(); | 117 | m_monotonicClock.start(); | ||
117 | 118 | | |||
118 | // 2 sec which should be enough to restart the compositor | 119 | // 2 sec which should be enough to restart the compositor | ||
119 | static const int compositorLostMessageDelay = 2000; | 120 | static const int compositorLostMessageDelay = 2000; | ||
120 | 121 | | |||
121 | m_releaseSelectionTimer.setSingleShot(true); | 122 | m_releaseSelectionTimer.setSingleShot(true); | ||
122 | m_releaseSelectionTimer.setInterval(compositorLostMessageDelay); | 123 | m_releaseSelectionTimer.setInterval(compositorLostMessageDelay); | ||
▲ Show 20 Lines • Show All 784 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.