aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2005-06-23 22:39:03 (GMT)
committerfluxgen <fluxgen>2005-06-23 22:39:03 (GMT)
commit4382b78b952fb398dc214e8994f0fc96b89b4fb0 (patch)
treef79d11faef9db0bedefaba4427e6b9883fe6629d /src
parenta54a2b1409a1446765d4eac8716a2c4e61112be2 (diff)
downloadfluxbox_pavel-4382b78b952fb398dc214e8994f0fc96b89b4fb0.zip
fluxbox_pavel-4382b78b952fb398dc214e8994f0fc96b89b4fb0.tar.bz2
minor fix for window menu
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