aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index b5536f7..138eaf4 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -965,6 +965,10 @@ void Menu::motionNotifyEvent(XMotionEvent &me) {
965 if (w == m_active_index) 965 if (w == m_active_index)
966 return; 966 return;
967 967
968 // if another menu is focused, change focus to this one, so arrow keys
969 // work as expected
970 if (s_focused != this && s_focused != 0)
971 grabInputFocus();
968 972
969 if (validIndex(m_active_index) && w != m_active_index) { 973 if (validIndex(m_active_index) && w != m_active_index) {
970 int old_active_index = m_active_index; 974 int old_active_index = m_active_index;