From 732d52d4fcb3a1ae644e6d82b2b69fbfa2efaf51 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sun, 5 Jun 2005 18:17:04 +0000 Subject: Using custom focus handler to work around problem with multiple widgets requesting modal focus using a stack based approach. --- src/gui/gui.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/gui.cpp') 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)); -- cgit v1.2.3-70-g09d2