|
|
|
|
@ -384,7 +384,8 @@ void Compositor::startupWithWorkspace() |
|
|
|
|
|
|
|
|
|
m_state = State::On; |
|
|
|
|
|
|
|
|
|
for (X11Window *window : Workspace::self()->clientList()) { |
|
|
|
|
const auto windows = workspace()->allClientList(); |
|
|
|
|
for (Window *window : windows) { |
|
|
|
|
window->setupCompositing(); |
|
|
|
|
} |
|
|
|
|
for (Unmanaged *window : Workspace::self()->unmanagedList()) { |
|
|
|
|
@ -394,13 +395,6 @@ void Compositor::startupWithWorkspace() |
|
|
|
|
window->setupCompositing(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (auto *server = waylandServer()) { |
|
|
|
|
const auto windows = server->windows(); |
|
|
|
|
for (Window *window : windows) { |
|
|
|
|
window->setupCompositing(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Sets also the 'effects' pointer.
|
|
|
|
|
kwinApp()->createEffectsHandler(this, m_scene.get()); |
|
|
|
|
|
|
|
|
|
@ -515,7 +509,8 @@ void Compositor::stop() |
|
|
|
|
effects = nullptr; |
|
|
|
|
|
|
|
|
|
if (Workspace::self()) { |
|
|
|
|
for (X11Window *window : Workspace::self()->clientList()) { |
|
|
|
|
const auto windows = workspace()->allClientList(); |
|
|
|
|
for (Window *window : windows) { |
|
|
|
|
window->finishCompositing(); |
|
|
|
|
} |
|
|
|
|
for (Unmanaged *window : Workspace::self()->unmanagedList()) { |
|
|
|
|
@ -536,13 +531,6 @@ void Compositor::stop() |
|
|
|
|
disconnect(workspace(), &Workspace::outputRemoved, this, &Compositor::removeOutput); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (waylandServer()) { |
|
|
|
|
const QList<Window *> toFinishCompositing = waylandServer()->windows(); |
|
|
|
|
for (Window *window : toFinishCompositing) { |
|
|
|
|
window->finishCompositing(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const auto superlayers = m_superlayers; |
|
|
|
|
for (auto it = superlayers.begin(); it != superlayers.end(); ++it) { |
|
|
|
|
removeSuperLayer(*it); |
|
|
|
|
|