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:
parent
72eb1153db
commit
29afd62e9c
1 changed files with 5 additions and 6 deletions
|
@ -910,12 +910,11 @@ void Workspace::slotReconfigure()
|
|||
updateToolWindows(true);
|
||||
|
||||
RuleBook::self()->load();
|
||||
for (auto it = m_allClients.begin();
|
||||
it != m_allClients.end();
|
||||
++it) {
|
||||
(*it)->setupWindowRules(true);
|
||||
(*it)->applyWindowRules();
|
||||
RuleBook::self()->discardUsed(*it, false);
|
||||
for (AbstractClient *client : m_allClients) {
|
||||
if (client->supportsWindowRules()) {
|
||||
client->evaluateWindowRules();
|
||||
RuleBook::self()->discardUsed(client, false);
|
||||
}
|
||||
}
|
||||
|
||||
if (borderlessMaximizedWindows != options->borderlessMaximizedWindows() &&
|
||||
|
|
Loading…
Reference in a new issue