summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-05 18:17:04 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-05 18:17:04 +0000
commit732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51 (patch)
treef09bb3b8c34cdfd78f8346460fabac7b2f21ddf8 /src/gui/gui.cpp
parentaba239393ecd298e8ffd16e0b6a5d86837c594ae (diff)
downloadmana-732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51.tar.gz
mana-732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51.tar.bz2
mana-732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51.tar.xz
mana-732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51.zip
Using custom focus handler to work around problem with multiple widgets
requesting modal focus using a stack based approach.
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));