diff --git a/abstract_client.cpp b/abstract_client.cpp index b6b4707a8d..ddbc58e0cd 100644 --- a/abstract_client.cpp +++ b/abstract_client.cpp @@ -55,6 +55,11 @@ bool AbstractClient::untab(const QRect &toGeometry, bool clientRemoved) return false; } +bool AbstractClient::isCurrentTab() const +{ + return true; +} + void AbstractClient::growHorizontal() { } diff --git a/abstract_client.h b/abstract_client.h index 7f746bc51b..4e95edc7f5 100644 --- a/abstract_client.h +++ b/abstract_client.h @@ -37,6 +37,11 @@ class TabBoxClientImpl; class AbstractClient : public Toplevel { Q_OBJECT + /** + * Whether this Client is the currently visible Client in its Client Group (Window Tabs). + * For change connect to the visibleChanged signal on the Client's Group. + **/ + Q_PROPERTY(bool isCurrentTab READ isCurrentTab) public: virtual ~AbstractClient(); @@ -80,6 +85,7 @@ public: virtual void setKeepBelow(bool) = 0; virtual TabGroup *tabGroup() const; Q_INVOKABLE virtual bool untab(const QRect &toGeometry = QRect(), bool clientRemoved = false); + virtual bool isCurrentTab() const; virtual MaximizeMode maximizeMode() const = 0; virtual void maximize(MaximizeMode) = 0; virtual bool noBorder() const = 0; diff --git a/client.h b/client.h index 345f2ffe29..0579176962 100644 --- a/client.h +++ b/client.h @@ -238,11 +238,6 @@ class Client * The "Window Tabs" Group this Client belongs to. **/ Q_PROPERTY(KWin::TabGroup* tabGroup READ tabGroup NOTIFY tabGroupChanged SCRIPTABLE false) - /** - * Whether this Client is the currently visible Client in its Client Group (Window Tabs). - * For change connect to the visibleChanged signal on the Client's Group. - **/ - Q_PROPERTY(bool isCurrentTab READ isCurrentTab) /** * Minimum size as specified in WM_NORMAL_HINTS **/ @@ -584,7 +579,7 @@ public: * client, this function stops it. */ void dontMoveResize(); - bool isCurrentTab() const; + bool isCurrentTab() const override; /** * Whether or not the window has a strut that expands through the invisible area of