all repos — fluxbox @ 4382b78b952fb398dc214e8994f0fc96b89b4fb0

custom fork of the fluxbox windowmanager

minor fix for window menu
fluxgen fluxgen
commit

4382b78b952fb398dc214e8994f0fc96b89b4fb0

parent

a54a2b1409a1446765d4eac8716a2c4e61112be2

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M src/Window.ccsrc/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();