Remove some redundant Toplevel::updateShadow() calls

Toplevel::setupCompositing() calls updateShadow().
This commit is contained in:
Vlad Zahorodnii 2021-11-09 11:30:35 +02:00
parent c478722655
commit 99bcb0eea7

View file

@ -381,22 +381,18 @@ void Compositor::startupWithWorkspace()
for (X11Client *c : Workspace::self()->clientList()) { for (X11Client *c : Workspace::self()->clientList()) {
c->setupCompositing(); c->setupCompositing();
c->updateShadow();
} }
for (Unmanaged *c : Workspace::self()->unmanagedList()) { for (Unmanaged *c : Workspace::self()->unmanagedList()) {
c->setupCompositing(); c->setupCompositing();
c->updateShadow();
} }
for (InternalClient *client : workspace()->internalClients()) { for (InternalClient *client : workspace()->internalClients()) {
client->setupCompositing(); client->setupCompositing();
client->updateShadow();
} }
if (auto *server = waylandServer()) { if (auto *server = waylandServer()) {
const auto clients = server->clients(); const auto clients = server->clients();
for (AbstractClient *c : clients) { for (AbstractClient *c : clients) {
c->setupCompositing(); c->setupCompositing();
c->updateShadow();
} }
} }