minor fix for window menu
fluxgen fluxgen
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
src/Window.cc
→
src/Window.cc
@@ -2260,12 +2260,14 @@ Moves the menu to last button press position and shows it,
if it's already visible it'll be hidden */ void FluxboxWindow::popupMenu() { - WindowCmd<void>::setWindow(this); - if (menu().isVisible()) { + // hide menu if it was opened for this window before + if (menu().isVisible() && WindowCmd<void>::window() == this) { menu().hide(); return; } + + WindowCmd<void>::setWindow(this); menu().disableTitle(); int menu_y = frame().titlebar().height() + frame().titlebar().borderWidth();