From d98bd419b419be1d5069c0fe77fa2a7b6379e45f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Sat, 2 Apr 2005 21:30:01 +0000 Subject: Work around Guichan focussing bug. --- src/gui/gui.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/gui.cpp') 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()); -- cgit v1.2.3-70-g09d2