aboutsummaryrefslogtreecommitdiff
path: root/src/IconButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconButton.cc')
-rw-r--r--src/IconButton.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IconButton.cc b/src/IconButton.cc
index 457a921..9b5c054 100644
--- a/src/IconButton.cc
+++ b/src/IconButton.cc
@@ -58,11 +58,11 @@ public:
58 explicit ShowMenu(FluxboxWindow &win):m_win(win) { } 58 explicit ShowMenu(FluxboxWindow &win):m_win(win) { }
59 void execute() { 59 void execute() {
60 m_win.screen().hideMenus(); 60 m_win.screen().hideMenus();
61 m_win.menu().enableTitle();
61 // get last button pos 62 // get last button pos
62 const XEvent &event = Fluxbox::instance()->lastEvent(); 63 const XEvent &event = Fluxbox::instance()->lastEvent();
63 int x = event.xbutton.x_root - (m_win.menu().width() / 2); 64 int x = event.xbutton.x_root - (m_win.menu().width() / 2);
64 int y = event.xbutton.y_root - (m_win.menu().height() / 2); 65 int y = event.xbutton.y_root - (m_win.menu().height() / 2);
65
66 m_win.showMenu(x, y); 66 m_win.showMenu(x, y);
67 } 67 }
68private: 68private: