Commit 35bcc9fc authored by Martin Flöser's avatar Martin Flöser
Browse files

Port RuleBook::discardUsed from Client to AbstractClient

Summary: Prepares the Rules update on reconfigure for Wayland windows.

Reviewers: #kwin, #plasma

Subscribers: plasma-devel, kwin

Tags: #kwin

Differential Revision:
parent 0372fdaf
......@@ -1108,7 +1108,7 @@ void RuleBook::cleanupTemporaryRules()
QTimer::singleShot(60000, this, SLOT(cleanupTemporaryRules()));
void RuleBook::discardUsed(Client* c, bool withdrawn)
void RuleBook::discardUsed(AbstractClient* c, bool withdrawn)
bool updated = false;
for (QList< Rules* >::Iterator it = m_rules.begin();
......@@ -293,7 +293,7 @@ class KWIN_EXPORT RuleBook : public QObject
virtual ~RuleBook();
WindowRules find(const AbstractClient*, bool);
void discardUsed(Client* c, bool withdraw);
void discardUsed(AbstractClient* c, bool withdraw);
void setUpdatesDisabled(bool disable);
bool areUpdatesDisabled() const;
void load();
......@@ -851,8 +851,8 @@ void Workspace::slotReconfigure()
for (ClientList::Iterator it = clients.begin();
it != clients.end();
for (auto it = m_allClients.begin();
it != m_allClients.end();
++it) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment