diff options
author | fluxgen <fluxgen> | 2005-06-23 22:39:03 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2005-06-23 22:39:03 (GMT) |
commit | 4382b78b952fb398dc214e8994f0fc96b89b4fb0 (patch) | |
tree | f79d11faef9db0bedefaba4427e6b9883fe6629d /src/Window.cc | |
parent | a54a2b1409a1446765d4eac8716a2c4e61112be2 (diff) | |
download | fluxbox-4382b78b952fb398dc214e8994f0fc96b89b4fb0.zip fluxbox-4382b78b952fb398dc214e8994f0fc96b89b4fb0.tar.bz2 |
minor fix for window menu
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 6 |
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 | */ |
2262 | void FluxboxWindow::popupMenu() { | 2262 | void 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 |