diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-09-03 20:35:38 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-09-03 22:09:40 (GMT) |
commit | 36993a80f4a246456429932abf596f2d2ef4b89d (patch) | |
tree | 7e0924770df042e097113546f1ab5a332ce08c85 /src/Toolbar.cc | |
parent | 6c2641404a62c55a231f8004e237aca459501309 (diff) | |
download | fluxbox-36993a80f4a246456429932abf596f2d2ef4b89d.zip fluxbox-36993a80f4a246456429932abf596f2d2ef4b89d.tar.bz2 |
hide menus when clicking title or toolbar
BUG: 1149
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index bfaec94..f343552 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -514,6 +514,9 @@ void Toolbar::reconfigure() { | |||
514 | 514 | ||
515 | void Toolbar::buttonPressEvent(XButtonEvent &be) { | 515 | void Toolbar::buttonPressEvent(XButtonEvent &be) { |
516 | Display *dpy = Fluxbox::instance()->display(); | 516 | Display *dpy = Fluxbox::instance()->display(); |
517 | |||
518 | FbTk::Menu::hideShownMenu(); | ||
519 | |||
517 | if (be.subwindow) { | 520 | if (be.subwindow) { |
518 | // Do not intercept mouse events that are meant for the tray icon | 521 | // Do not intercept mouse events that are meant for the tray icon |
519 | if (SystemTray::doesControl(be.subwindow)) { | 522 | if (SystemTray::doesControl(be.subwindow)) { |