summaryrefslogtreecommitdiff
path: root/src/gui/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.h')
-rw-r--r--src/gui/gui.h6
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;
};