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;