From a508895993a3fe8d45af4b96719530f2c9d3fd94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 18 Oct 2002 11:13:30 +0000 Subject: [PATCH] Damn, I hate keeping BC in an application. svn path=/trunk/kdebase/kwin/; revision=184470 --- client.cpp | 4 ++++ client.h | 1 + 2 files changed, 5 insertions(+) diff --git a/client.cpp b/client.cpp index c8e38074a2..832b84971b 100644 --- a/client.cpp +++ b/client.cpp @@ -3055,6 +3055,10 @@ bool Client::isTopMenu() const return windowType() == NET::TopMenu; } +bool Client::isMenu() const +{ + return windowType() == NET::Menu; +} bool Client::isToolbar() const { diff --git a/client.h b/client.h index 527b03248b..ead89f1a5d 100644 --- a/client.h +++ b/client.h @@ -161,6 +161,7 @@ public: bool isTool() const; // KDE4 remove me bool isToolbar() const; bool isTopMenu() const; + bool isMenu() const; bool isNormalWindow() const; // normal as in 'NET::Normal or NET::Unknown non-transient' bool isDialog() const;