aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-09-03 20:35:38 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2016-09-03 22:09:40 (GMT)
commit36993a80f4a246456429932abf596f2d2ef4b89d (patch)
tree7e0924770df042e097113546f1ab5a332ce08c85 /src/Window.cc
parent6c2641404a62c55a231f8004e237aca459501309 (diff)
downloadfluxbox-36993a80f4a246456429932abf596f2d2ef4b89d.zip
fluxbox-36993a80f4a246456429932abf596f2d2ef4b89d.tar.bz2
hide menus when clicking title or toolbar
BUG: 1149
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc4
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