From aba9440780b5af6ef8ab0015285ca8eb02ad23bc Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 29 Nov 2021 22:05:47 +0200 Subject: [PATCH] Move AbstractClient::isInternal() to Toplevel --- src/abstract_client.cpp | 5 ----- src/abstract_client.h | 10 ---------- src/toplevel.h | 6 ++++++ 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/abstract_client.cpp b/src/abstract_client.cpp index 704764a7f3..21053359e3 100644 --- a/src/abstract_client.cpp +++ b/src/abstract_client.cpp @@ -2966,11 +2966,6 @@ Group *AbstractClient::group() return nullptr; } -bool AbstractClient::isInternal() const -{ - return false; -} - bool AbstractClient::supportsWindowRules() const { return false; diff --git a/src/abstract_client.h b/src/abstract_client.h index 67fb701060..8d7300dacb 100644 --- a/src/abstract_client.h +++ b/src/abstract_client.h @@ -878,16 +878,6 @@ public: */ virtual Group *group(); - /** - * Returns whether this is an internal client. - * - * Internal clients are created by KWin and used for special purpose windows, - * like the task switcher, etc. - * - * Default implementation returns @c false. - */ - virtual bool isInternal() const; - /** * Returns whether window rules can be applied to this client. * diff --git a/src/toplevel.h b/src/toplevel.h index 8ea1f96a2a..2ad992b7e1 100644 --- a/src/toplevel.h +++ b/src/toplevel.h @@ -390,6 +390,7 @@ public: virtual bool isLockScreen() const; virtual bool isInputMethod() const; virtual bool isOutline() const; + virtual bool isInternal() const; /** * Returns the virtual desktop within the workspace() the client window @@ -879,6 +880,11 @@ inline bool Toplevel::isOutline() const return false; } +inline bool Toplevel::isInternal() const +{ + return false; +} + inline bool Toplevel::shape() const { return is_shape;