diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-02-24 10:21:16 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-02-24 10:21:16 (GMT) |
commit | f0ffaf890f65d9902ba23e2cd019de5ddba071c5 (patch) | |
tree | ecfbba4c6b1f60f5f3d259c8d9e2ef77ec261d54 /src/IconbarTool.cc | |
parent | 49623390b623bcf4851e5cdd972e4c37d5103ecf (diff) | |
download | fluxbox_pavel-f0ffaf890f65d9902ba23e2cd019de5ddba071c5.zip fluxbox_pavel-f0ffaf890f65d9902ba23e2cd019de5ddba071c5.tar.bz2 |
moved Menu placement into ScreenPlacement::placeAndShowMenu()
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; |