Changeset View
Changeset View
Standalone View
Standalone View
composite.cpp
Show First 20 Lines • Show All 290 Lines • ▼ Show 20 Line(s) | 277 | { | |||
---|---|---|---|---|---|
291 | } | 291 | } | ||
292 | } | 292 | } | ||
293 | 293 | | |||
294 | void Compositor::startupWithWorkspace() | 294 | void Compositor::startupWithWorkspace() | ||
295 | { | 295 | { | ||
296 | if (!m_starting) { | 296 | if (!m_starting) { | ||
297 | return; | 297 | return; | ||
298 | } | 298 | } | ||
299 | Workspace::self()->markXStackingOrderAsDirty(); | ||||
299 | Q_ASSERT(m_scene); | 300 | Q_ASSERT(m_scene); | ||
300 | connect(workspace(), &Workspace::destroyed, this, [this] { compositeTimer.stop(); }); | 301 | connect(workspace(), &Workspace::destroyed, this, [this] { compositeTimer.stop(); }); | ||
301 | claimCompositorSelection(); | 302 | claimCompositorSelection(); | ||
302 | m_xrrRefreshRate = KWin::currentRefreshRate(); | 303 | m_xrrRefreshRate = KWin::currentRefreshRate(); | ||
303 | fpsInterval = options->maxFpsInterval(); | 304 | fpsInterval = options->maxFpsInterval(); | ||
304 | if (m_scene->syncsToVBlank()) { // if we do vsync, set the fps to the next multiple of the vblank rate | 305 | if (m_scene->syncsToVBlank()) { // if we do vsync, set the fps to the next multiple of the vblank rate | ||
305 | vBlankInterval = milliToNano(1000) / m_xrrRefreshRate; | 306 | vBlankInterval = milliToNano(1000) / m_xrrRefreshRate; | ||
306 | fpsInterval = qMax((fpsInterval / vBlankInterval) * vBlankInterval, vBlankInterval); | 307 | fpsInterval = qMax((fpsInterval / vBlankInterval) * vBlankInterval, vBlankInterval); | ||
▲ Show 20 Lines • Show All 916 Lines • Show Last 20 Lines |