summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index 163fc83..a2326c4 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -816,7 +816,9 @@ void Menu::handleEvent(XEvent &event) {
816 if (event.type == FocusOut) { 816 if (event.type == FocusOut) {
817 if (s_focused == this) 817 if (s_focused == this)
818 s_focused = 0; 818 s_focused = 0;
819 } else if (event.type == FocusIn) { 819 // I don't know why, but I get a FocusIn event when closing the menu with
820 // the mouse over it -- probably an xorg bug, but it's easy to address here
821 } else if (event.type == FocusIn && m_visible) {
820 if (s_focused != this) 822 if (s_focused != this)
821 s_focused = this; 823 s_focused = this;
822 // if there's a submenu open, focus it instead 824 // if there's a submenu open, focus it instead