aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2009-06-28 19:34:34 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2009-06-28 19:34:34 (GMT)
commit27d181f490fc7ec0b5d1d6612545c2acd9dd2921 (patch)
tree65176019f8103a87d9415dc9646960a473362474
parent9f59ce18a21c8544d996235787ff1d7a6557153d (diff)
downloadfluxbox-27d181f490fc7ec0b5d1d6612545c2acd9dd2921.zip
fluxbox-27d181f490fc7ec0b5d1d6612545c2acd9dd2921.tar.bz2
hide the menu when you click on a window
-rw-r--r--ChangeLog2
-rw-r--r--src/Window.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index da33f82..ab151a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.1.2 2Changes for 1.1.2
3*09/06/28: 3*09/06/28:
4 * Hide the menu when you click on a window (Mark)
5 Window.cc
4 * Make Raise/LowerLayer commands accept integer argument, defualt 2 (Mark) 6 * Make Raise/LowerLayer commands accept integer argument, defualt 2 (Mark)
5 CurrentWindowCmd.cc/hh Window.cc/hh 7 CurrentWindowCmd.cc/hh Window.cc/hh
6 * Change default toolbar head to 1 (Mark) 8 * Change default toolbar head to 1 (Mark)
diff --git a/src/Window.cc b/src/Window.cc
index defa6cc..d38fb8a 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -2403,10 +2403,9 @@ void FluxboxWindow::buttonPressEvent(XButtonEvent &be) {
2403 } else if (frame().handle() == be.window) 2403 } else if (frame().handle() == be.window)
2404 raise(); 2404 raise();
2405 2405
2406 FbTk::Menu::hideShownMenu();
2406 if (!m_focused && acceptsFocus() && m_click_focus) //check focus 2407 if (!m_focused && acceptsFocus() && m_click_focus) //check focus
2407 focus(); 2408 focus();
2408
2409 menu().hide();
2410 } 2409 }
2411} 2410}
2412 2411