diff --git a/rules.cpp b/rules.cpp index 07bbab1e83..3b463fc520 100644 --- a/rules.cpp +++ b/rules.cpp @@ -988,7 +988,7 @@ WindowRules RuleBook::find(const Client* c, bool ignore_temporary) return WindowRules(ret); } -void RuleBook::edit(Client* c, bool whole_app) +void RuleBook::edit(AbstractClient* c, bool whole_app) { save(); QStringList args; diff --git a/rules.h b/rules.h index eb1a077736..b6c2d3f8da 100644 --- a/rules.h +++ b/rules.h @@ -38,6 +38,7 @@ class KXMessages; namespace KWin { +class AbstractClient; class Client; class Rules; @@ -292,7 +293,7 @@ public: void setUpdatesDisabled(bool disable); bool areUpdatesDisabled() const; void load(); - void edit(Client* c, bool whole_app); + void edit(AbstractClient* c, bool whole_app); void requestDiskStorage(); private Q_SLOTS: void temporaryRulesMessage(const QString&);