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.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 899ae374..943584ce 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -80,6 +80,15 @@ Gui::~Gui()
delete guiInput;
}
+void Gui::logic()
+{
+ gcn::Gui::logic();
+
+ // Work around Guichan bug of only applying focus on mouse or keyboard
+ // events.
+ mFocusHandler->applyChanges();
+}
+
void Gui::draw()
{
guiGraphics->pushClipArea(guiTop->getDimension());