Changeset View
Changeset View
Standalone View
Standalone View
composite.cpp
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Line(s) | 408 | if (waylandServer()) { | |||
---|---|---|---|---|---|
418 | foreach (ShellClient *c, waylandServer()->internalClients()) { | 418 | foreach (ShellClient *c, waylandServer()->internalClients()) { | ||
419 | c->finishCompositing(); | 419 | c->finishCompositing(); | ||
420 | } | 420 | } | ||
421 | } | 421 | } | ||
422 | delete m_scene; | 422 | delete m_scene; | ||
423 | m_scene = NULL; | 423 | m_scene = NULL; | ||
424 | compositeTimer.stop(); | 424 | compositeTimer.stop(); | ||
425 | repaints_region = QRegion(); | 425 | repaints_region = QRegion(); | ||
426 | if (Workspace::self()) { | | |||
427 | for (ClientList::ConstIterator it = Workspace::self()->clientList().constBegin(); | | |||
428 | it != Workspace::self()->clientList().constEnd(); | | |||
429 | ++it) { | | |||
430 | // forward all opacity values to the frame in case there'll be other CM running | | |||
431 | if ((*it)->opacity() != 1.0) { | | |||
432 | NETWinInfo i(connection(), (*it)->frameId(), rootWindow(), 0, 0); | | |||
433 | i.setOpacity(static_cast< unsigned long >((*it)->opacity() * 0xffffffff)); | | |||
434 | } | | |||
435 | } | | |||
436 | } | | |||
437 | m_finishing = false; | 426 | m_finishing = false; | ||
438 | emit compositingToggled(false); | 427 | emit compositingToggled(false); | ||
439 | } | 428 | } | ||
440 | 429 | | |||
441 | void Compositor::releaseCompositorSelection() | 430 | void Compositor::releaseCompositorSelection() | ||
442 | { | 431 | { | ||
443 | if (hasScene() && !m_finishing) { | 432 | if (hasScene() && !m_finishing) { | ||
444 | // compositor is up and running again, no need to release the selection | 433 | // compositor is up and running again, no need to release the selection | ||
▲ Show 20 Lines • Show All 766 Lines • Show Last 20 Lines |