aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 5f45ce8..a8613c3 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2260,13 +2260,15 @@ void FluxboxWindow::showMenu(int menu_x, int menu_y) {
2260 if it's already visible it'll be hidden 2260 if it's already visible it'll be hidden
2261 */ 2261 */
2262void FluxboxWindow::popupMenu() { 2262void FluxboxWindow::popupMenu() {
2263 WindowCmd<void>::setWindow(this);
2264 2263
2265 if (menu().isVisible()) { 2264 // hide menu if it was opened for this window before
2265 if (menu().isVisible() && WindowCmd<void>::window() == this) {
2266 menu().hide(); 2266 menu().hide();
2267 return; 2267 return;
2268 } 2268 }
2269 2269
2270 WindowCmd<void>::setWindow(this);
2271
2270 menu().disableTitle(); 2272 menu().disableTitle();
2271 int menu_y = frame().titlebar().height() + frame().titlebar().borderWidth(); 2273 int menu_y = frame().titlebar().height() + frame().titlebar().borderWidth();
2272 if (!decorations.titlebar) // if we don't have any titlebar 2274 if (!decorations.titlebar) // if we don't have any titlebar