enable title of windowmenu when called from iconbar
This commit is contained in:
parent
83a3b47758
commit
ad095f9f06
1 changed files with 1 additions and 1 deletions
|
@ -58,11 +58,11 @@ public:
|
||||||
explicit ShowMenu(FluxboxWindow &win):m_win(win) { }
|
explicit ShowMenu(FluxboxWindow &win):m_win(win) { }
|
||||||
void execute() {
|
void execute() {
|
||||||
m_win.screen().hideMenus();
|
m_win.screen().hideMenus();
|
||||||
|
m_win.menu().enableTitle();
|
||||||
// get last button pos
|
// get last button pos
|
||||||
const XEvent &event = Fluxbox::instance()->lastEvent();
|
const XEvent &event = Fluxbox::instance()->lastEvent();
|
||||||
int x = event.xbutton.x_root - (m_win.menu().width() / 2);
|
int x = event.xbutton.x_root - (m_win.menu().width() / 2);
|
||||||
int y = event.xbutton.y_root - (m_win.menu().height() / 2);
|
int y = event.xbutton.y_root - (m_win.menu().height() / 2);
|
||||||
|
|
||||||
m_win.showMenu(x, y);
|
m_win.showMenu(x, y);
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue