Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 188 | connect(ws, &Workspace::clientActivated, this, | |||
---|---|---|---|---|---|
191 | } | 191 | } | ||
192 | ); | 192 | ); | ||
193 | connect(ws, &Workspace::deletedRemoved, this, | 193 | connect(ws, &Workspace::deletedRemoved, this, | ||
194 | [this](KWin::Deleted *d) { | 194 | [this](KWin::Deleted *d) { | ||
195 | emit windowDeleted(d->effectWindow()); | 195 | emit windowDeleted(d->effectWindow()); | ||
196 | elevated_windows.removeAll(d->effectWindow()); | 196 | elevated_windows.removeAll(d->effectWindow()); | ||
197 | } | 197 | } | ||
198 | ); | 198 | ); | ||
199 | connect(ws->sessionManager(), &SessionManager::stateChanged, this, | ||||
200 | &KWin::EffectsHandler::sessionStateChanged); | ||||
199 | connect(vds, &VirtualDesktopManager::countChanged, this, &EffectsHandler::numberDesktopsChanged); | 201 | connect(vds, &VirtualDesktopManager::countChanged, this, &EffectsHandler::numberDesktopsChanged); | ||
200 | connect(Cursor::self(), &Cursor::mouseChanged, this, &EffectsHandler::mouseChanged); | 202 | connect(Cursor::self(), &Cursor::mouseChanged, this, &EffectsHandler::mouseChanged); | ||
201 | connect(screens(), &Screens::countChanged, this, &EffectsHandler::numberScreensChanged); | 203 | connect(screens(), &Screens::countChanged, this, &EffectsHandler::numberScreensChanged); | ||
202 | connect(screens(), &Screens::sizeChanged, this, &EffectsHandler::virtualScreenSizeChanged); | 204 | connect(screens(), &Screens::sizeChanged, this, &EffectsHandler::virtualScreenSizeChanged); | ||
203 | connect(screens(), &Screens::geometryChanged, this, &EffectsHandler::virtualScreenGeometryChanged); | 205 | connect(screens(), &Screens::geometryChanged, this, &EffectsHandler::virtualScreenGeometryChanged); | ||
204 | #ifdef KWIN_BUILD_ACTIVITIES | 206 | #ifdef KWIN_BUILD_ACTIVITIES | ||
205 | if (Activities *activities = Activities::self()) { | 207 | if (Activities *activities = Activities::self()) { | ||
206 | connect(activities, &Activities::added, this, &EffectsHandler::activityAdded); | 208 | connect(activities, &Activities::added, this, &EffectsHandler::activityAdded); | ||
▲ Show 20 Lines • Show All 1498 Lines • ▼ Show 20 Line(s) | |||||
1705 | void EffectsHandlerImpl::renderEffectQuickView(EffectQuickView *w) const | 1707 | void EffectsHandlerImpl::renderEffectQuickView(EffectQuickView *w) const | ||
1706 | { | 1708 | { | ||
1707 | if (!w->isVisible()) { | 1709 | if (!w->isVisible()) { | ||
1708 | return; | 1710 | return; | ||
1709 | } | 1711 | } | ||
1710 | scene()->paintEffectQuickView(w); | 1712 | scene()->paintEffectQuickView(w); | ||
1711 | } | 1713 | } | ||
1712 | 1714 | | |||
1715 | SessionState EffectsHandlerImpl::sessionState() const | ||||
1716 | { | ||||
1717 | return Workspace::self()->sessionManager()->state(); | ||||
1718 | } | ||||
1719 | | ||||
1713 | //**************************************** | 1720 | //**************************************** | ||
1714 | // EffectWindowImpl | 1721 | // EffectWindowImpl | ||
1715 | //**************************************** | 1722 | //**************************************** | ||
1716 | 1723 | | |||
1717 | EffectWindowImpl::EffectWindowImpl(Toplevel *toplevel) | 1724 | EffectWindowImpl::EffectWindowImpl(Toplevel *toplevel) | ||
1718 | : EffectWindow(toplevel) | 1725 | : EffectWindow(toplevel) | ||
1719 | , toplevel(toplevel) | 1726 | , toplevel(toplevel) | ||
1720 | , sw(nullptr) | 1727 | , sw(nullptr) | ||
▲ Show 20 Lines • Show All 680 Lines • Show Last 20 Lines |