Evaluate window rules only if they are supported

There is no point for evaluating window rules for popups and internal
clients.
This commit is contained in:
Vlad Zahorodnii 2020-08-20 22:41:58 +03:00
parent 72eb1153db
commit 29afd62e9c

View file

@ -910,12 +910,11 @@ void Workspace::slotReconfigure()
updateToolWindows(true); updateToolWindows(true);
RuleBook::self()->load(); RuleBook::self()->load();
for (auto it = m_allClients.begin(); for (AbstractClient *client : m_allClients) {
it != m_allClients.end(); if (client->supportsWindowRules()) {
++it) { client->evaluateWindowRules();
(*it)->setupWindowRules(true); RuleBook::self()->discardUsed(client, false);
(*it)->applyWindowRules(); }
RuleBook::self()->discardUsed(*it, false);
} }
if (borderlessMaximizedWindows != options->borderlessMaximizedWindows() && if (borderlessMaximizedWindows != options->borderlessMaximizedWindows() &&