diff options
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index 62eae0d..932121f 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc | |||
@@ -212,10 +212,8 @@ public: | |||
212 | explicit ShowMenu(FluxboxWindow &win):m_win(win) { } | 212 | explicit ShowMenu(FluxboxWindow &win):m_win(win) { } |
213 | void execute() { | 213 | void execute() { |
214 | // get last button pos | 214 | // get last button pos |
215 | const XEvent &event = Fluxbox::instance()->lastEvent(); | 215 | const XEvent &e = Fluxbox::instance()->lastEvent(); |
216 | int x = event.xbutton.x_root - (m_win.menu().width() / 2); | 216 | m_win.popupMenu(e.xbutton.x_root, e.xbutton.y_root); |
217 | int y = event.xbutton.y_root - (m_win.menu().height() / 2); | ||
218 | m_win.popupMenu(x, y); | ||
219 | } | 217 | } |
220 | private: | 218 | private: |
221 | FluxboxWindow &m_win; | 219 | FluxboxWindow &m_win; |