summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index e3b5a0bb..73e77073 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -24,6 +24,7 @@
#include "gui.h"
#include "window.h"
#include "windowcontainer.h"
+#include "focushandler.h"
#include "../engine.h"
#include "../net/protocol.h"
#include "../main.h"
@@ -60,6 +61,10 @@ Gui::Gui(Graphics *graphics)
gcn::Image::setImageLoader(imageLoader);
+ // Set focus handler
+ delete mFocusHandler;
+ mFocusHandler = new FocusHandler();
+
// Initialize top GUI widget
guiTop = new WindowContainer();
guiTop->setDimension(gcn::Rectangle(0, 0, screen->w, screen->h));