From 4aeceabb5d4f00e2555234951a2f5db24b008265 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Apr 2013 18:17:50 +0300 Subject: Improve perfomance in windows and popups visibility checks. --- src/gui/widgets/popup.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/widgets/popup.h') diff --git a/src/gui/widgets/popup.h b/src/gui/widgets/popup.h index 23bce3d5f..57772f642 100644 --- a/src/gui/widgets/popup.h +++ b/src/gui/widgets/popup.h @@ -168,6 +168,9 @@ class Popup : public Container, public gcn::MouseListener, void widgetMoved(const gcn::Event &event) override; + bool isPopupVisible() const + { return mVisible; } + protected: int mPadding; /**< Holds the padding of the popup. */ Skin *mSkin; /**< Skin in use by this popup */ -- cgit v1.2.3-70-g09d2