diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-15 23:21:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-15 23:52:24 +0300 |
commit | 54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3 (patch) | |
tree | 4bcee0ad9757bc328bae9c0435a3a1e8d85f1676 /src/gui/gui.h | |
parent | 62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4 (diff) | |
download | mv-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.gz mv-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.bz2 mv-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.xz mv-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.zip |
Allow hide popup list if focus lost.
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r-- | src/gui/gui.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/gui.h b/src/gui/gui.h index 04b6ddba3..0efa25c1d 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -26,6 +26,7 @@ #include "resources/cursor.h" #include "resources/image.h" +#include <guichan/focuslistener.hpp> #include <guichan/gui.hpp> #include "localconsts.h" @@ -146,6 +147,8 @@ class Gui final : public gcn::Gui void removeGlobalFocusListener(gcn::FocusListener* focusListener); + void distributeGlobalFocusGainedEvent(const gcn::Event &focusEvent); + protected: void handleMouseMoved(const gcn::MouseInput &mouseInput); @@ -168,7 +171,8 @@ class Gui final : public gcn::Gui int mMouseInactivityTimer; int mCursorType; - typedef std::list<FocusListener*> FocusListenerList; + typedef std::list<gcn::FocusListener*> FocusListenerList; + typedef FocusListenerList::iterator FocusListenerIterator; FocusListenerList mFocusListeners; }; |