From eb00a566042c4e4e28fc34251e394a63a5a54d78 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 17 Aug 2020 10:28:35 +0300 Subject: [PATCH] Show a warning message if calling an unimplemented method It makes easier to spot potential bugs in AbstractClient subclasses. --- abstract_client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/abstract_client.cpp b/abstract_client.cpp index 00be63f674..6155e25fc8 100644 --- a/abstract_client.cpp +++ b/abstract_client.cpp @@ -3359,6 +3359,7 @@ void AbstractClient::setFullScreen(bool set, bool user) { Q_UNUSED(set) Q_UNUSED(user) + qCWarning(KWIN_CORE, "%s doesn't support setting fullscreen state", metaObject()->className()); } /** @@ -3431,6 +3432,7 @@ void AbstractClient::changeMaximize(bool horizontal, bool vertical, bool adjust) Q_UNUSED(horizontal) Q_UNUSED(vertical) Q_UNUSED(adjust) + qCWarning(KWIN_CORE, "%s doesn't support setting maximized state", metaObject()->className()); } }