diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-12-15 23:21:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-12-15 23:52:24 +0300 |
commit | 54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3 (patch) | |
tree | 4bcee0ad9757bc328bae9c0435a3a1e8d85f1676 /src/gui/focushandler.cpp | |
parent | 62a466e53cbb49c5338f8ea7f96b46e00d3b0bc4 (diff) | |
download | mv-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.gz mv-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.bz2 mv-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.tar.xz mv-54ff2f6fec70e66d7a8b4a96b28fa7d46f2304a3.zip |
Allow hide popup list if focus lost.
Diffstat (limited to 'src/gui/focushandler.cpp')
-rw-r--r-- | src/gui/focushandler.cpp | 9 |
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); +} |