summaryrefslogtreecommitdiff
path: root/src/ToolFactory.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-12-11 19:29:00 (GMT)
committermarkt <markt>2007-12-11 19:29:00 (GMT)
commit474e2017454d3c6492eb9f428aee039d36d76e05 (patch)
treecae44371e3dc31d1cb3aafdd2fbf83a26527e540 /src/ToolFactory.cc
parent38877987c43857f79481bedeb036380b32019a0f (diff)
downloadfluxbox_lack-474e2017454d3c6492eb9f428aee039d36d76e05.zip
fluxbox_lack-474e2017454d3c6492eb9f428aee039d36d76e05.tar.bz2
only allow one open menu at a time
Diffstat (limited to 'src/ToolFactory.cc')
-rw-r--r--src/ToolFactory.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ToolFactory.cc b/src/ToolFactory.cc
index ee1316a..3fa8714 100644
--- a/src/ToolFactory.cc
+++ b/src/ToolFactory.cc
@@ -50,7 +50,6 @@ class ShowMenuAboveToolbar: public FbTk::Command {
50public: 50public:
51 explicit ShowMenuAboveToolbar(Toolbar &tbar):m_tbar(tbar) { } 51 explicit ShowMenuAboveToolbar(Toolbar &tbar):m_tbar(tbar) { }
52 void execute() { 52 void execute() {
53 m_tbar.screen().hideMenus();
54 // get last button pos 53 // get last button pos
55 const XEvent &event = Fluxbox::instance()->lastEvent(); 54 const XEvent &event = Fluxbox::instance()->lastEvent();
56 int head = m_tbar.screen().getHead(event.xbutton.x_root, event.xbutton.y_root); 55 int head = m_tbar.screen().getHead(event.xbutton.x_root, event.xbutton.y_root);