diff options
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc index ad58263..1e15dc8 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -2415,6 +2415,8 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) { | |||
2415 | m_last_button_y = be.y_root; | 2415 | m_last_button_y = be.y_root; |
2416 | m_last_pressed_button = be.button; | 2416 | m_last_pressed_button = be.button; |
2417 | 2417 | ||
2418 | FbTk::Menu::hideShownMenu(); | ||
2419 | |||
2418 | Keys *k = Fluxbox::instance()->keys(); | 2420 | Keys *k = Fluxbox::instance()->keys(); |
2419 | int context = 0; | 2421 | int context = 0; |
2420 | context = frame().getContext(be.subwindow ? be.subwindow : be.window, be.x_root, be.y_root); | 2422 | context = frame().getContext(be.subwindow ? be.subwindow : be.window, be.x_root, be.y_root); |
@@ -2448,7 +2450,7 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) { | |||
2448 | m_button_grab_x = be.x_root - frame().x() - frame().window().borderWidth(); | 2450 | m_button_grab_x = be.x_root - frame().x() - frame().window().borderWidth(); |
2449 | m_button_grab_y = be.y_root - frame().y() - frame().window().borderWidth(); | 2451 | m_button_grab_y = be.y_root - frame().y() - frame().window().borderWidth(); |
2450 | } | 2452 | } |
2451 | FbTk::Menu::hideShownMenu(); | 2453 | |
2452 | if (!m_focused && acceptsFocus() && m_click_focus) | 2454 | if (!m_focused && acceptsFocus() && m_click_focus) |
2453 | focus(); | 2455 | focus(); |
2454 | 2456 | ||