Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/screens_xrandr.cpp
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | 44 | { | |||
---|---|---|---|---|---|
48 | setCount(m_backend->outputs().count()); | 48 | setCount(m_backend->outputs().count()); | ||
49 | emit changed(); | 49 | emit changed(); | ||
50 | 50 | | |||
51 | #ifndef KWIN_UNIT_TEST | 51 | #ifndef KWIN_UNIT_TEST | ||
52 | connect(this, &XRandRScreens::changed, this, [] { | 52 | connect(this, &XRandRScreens::changed, this, [] { | ||
53 | if (!workspace()->compositing()) { | 53 | if (!workspace()->compositing()) { | ||
54 | return; | 54 | return; | ||
55 | } | 55 | } | ||
56 | if (Compositor::self()->xrrRefreshRate() == Options::currentRefreshRate()) { | 56 | if (Compositor::self()->refreshRate() == Options::currentRefreshRate()) { | ||
57 | return; | 57 | return; | ||
58 | } | 58 | } | ||
59 | // desktopResized() should take care of when the size or | 59 | // desktopResized() should take care of when the size or | ||
60 | // shape of the desktop has changed, but we also want to | 60 | // shape of the desktop has changed, but we also want to | ||
61 | // catch refresh rate changes | 61 | // catch refresh rate changes | ||
62 | Compositor::self()->reinitialize(); | 62 | Compositor::self()->reinitialize(); | ||
63 | }); | 63 | }); | ||
64 | #endif | 64 | #endif | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |