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: https://phabricator.kde.org/D8094
This commit is contained in:
parent
0372fdaf92
commit
35bcc9fc35
3 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
|
|
2
rules.h
2
rules.h
|
@ -293,7 +293,7 @@ class KWIN_EXPORT RuleBook : public QObject
|
|||
public:
|
||||
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()
|
|||
updateToolWindows(true);
|
||||
|
||||
RuleBook::self()->load();
|
||||
for (ClientList::Iterator it = clients.begin();
|
||||
it != clients.end();
|
||||
for (auto it = m_allClients.begin();
|
||||
it != m_allClients.end();
|
||||
++it) {
|
||||
(*it)->setupWindowRules(true);
|
||||
(*it)->applyWindowRules();
|
||||
|
|
Loading…
Reference in a new issue