Changeset View
Changeset View
Standalone View
Standalone View
effects.cpp
Show First 20 Lines • Show All 248 Lines • ▼ Show 20 Line(s) | 248 | if (auto w = waylandServer()) { | |||
---|---|---|---|---|---|
249 | connect(w, &WaylandServer::shellClientAdded, this, | 249 | connect(w, &WaylandServer::shellClientAdded, this, | ||
250 | [this](ShellClient *c) { | 250 | [this](ShellClient *c) { | ||
251 | if (c->readyForPainting()) | 251 | if (c->readyForPainting()) | ||
252 | slotShellClientShown(c); | 252 | slotShellClientShown(c); | ||
253 | else | 253 | else | ||
254 | connect(c, &Toplevel::windowShown, this, &EffectsHandlerImpl::slotShellClientShown); | 254 | connect(c, &Toplevel::windowShown, this, &EffectsHandlerImpl::slotShellClientShown); | ||
255 | } | 255 | } | ||
256 | ); | 256 | ); | ||
257 | const auto clients = waylandServer()->clients(); | ||||
258 | for (ShellClient *c : clients) { | ||||
259 | if (c->readyForPainting()) { | ||||
260 | setupAbstractClientConnections(c); | ||||
261 | } else { | ||||
262 | connect(c, &Toplevel::windowShown, this, &EffectsHandlerImpl::slotShellClientShown); | ||||
263 | } | ||||
264 | } | ||||
257 | } | 265 | } | ||
258 | reconfigure(); | 266 | reconfigure(); | ||
259 | } | 267 | } | ||
260 | 268 | | |||
261 | EffectsHandlerImpl::~EffectsHandlerImpl() | 269 | EffectsHandlerImpl::~EffectsHandlerImpl() | ||
262 | { | 270 | { | ||
263 | unloadAllEffects(); | 271 | unloadAllEffects(); | ||
264 | } | 272 | } | ||
▲ Show 20 Lines • Show All 1831 Lines • Show Last 20 Lines |