summaryrefslogtreecommitdiff
path: root/src/gui/focushandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/focushandler.cpp')
-rw-r--r--src/gui/focushandler.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/focushandler.cpp b/src/gui/focushandler.cpp
index ce40c3a7c..80bc0a04f 100644
--- a/src/gui/focushandler.cpp
+++ b/src/gui/focushandler.cpp
@@ -22,6 +22,8 @@
#include "gui/focushandler.h"
+#include "gui/gui.h"
+
#include "gui/widgets/window.h"
#include "debug.h"
@@ -100,3 +102,10 @@ void FocusHandler::checkForWindow()
}
}
}
+
+void FocusHandler::distributeFocusGainedEvent(const gcn::Event &focusEvent)
+{
+ if (gui)
+ gui->distributeGlobalFocusGainedEvent(focusEvent);
+ gcn::FocusHandler::distributeFocusGainedEvent(focusEvent);
+}