make the menu bit of decoration masks control whether or not menu button is shown on window (it did nothing before)
This commit is contained in:
parent
fb52be0c47
commit
2944cd0014
2 changed files with 13 additions and 12 deletions
|
@ -3613,15 +3613,16 @@ void FluxboxWindow::updateButtons() {
|
|||
}
|
||||
break;
|
||||
case WinButton::MENUICON:
|
||||
winbtn = new WinButton(*this, m_button_theme,
|
||||
screen().pressedWinButtonTheme(),
|
||||
dir[i],
|
||||
frame().titlebar(),
|
||||
0, 0, 10, 10);
|
||||
winbtn->join(titleSig(),
|
||||
if (m_state.deco_mask & WindowState::DECORM_MENU) {
|
||||
winbtn = new WinButton(*this, m_button_theme,
|
||||
screen().pressedWinButtonTheme(),
|
||||
dir[i],
|
||||
frame().titlebar(),
|
||||
0, 0, 10, 10);
|
||||
winbtn->join(titleSig(),
|
||||
FbTk::MemFunIgnoreArgs(*winbtn, &WinButton::updateAll));
|
||||
|
||||
winbtn->setOnClick(show_menu_cmd);
|
||||
winbtn->setOnClick(show_menu_cmd);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,10 +90,10 @@ public:
|
|||
enum Decoration {
|
||||
DECOR_NONE = 0,
|
||||
DECOR_NORMAL = DECORM_LAST - 1,
|
||||
DECOR_TINY = DECORM_TITLEBAR|DECORM_ICONIFY|DECORM_MENU|DECORM_TAB,
|
||||
DECOR_TOOL = DECORM_TITLEBAR|DECORM_MENU,
|
||||
DECOR_BORDER = DECORM_BORDER|DECORM_MENU,
|
||||
DECOR_TAB = DECORM_BORDER|DECORM_MENU|DECORM_TAB
|
||||
DECOR_TINY = DECORM_TITLEBAR|DECORM_ICONIFY,
|
||||
DECOR_TOOL = DECORM_TITLEBAR,
|
||||
DECOR_BORDER = DECORM_BORDER,
|
||||
DECOR_TAB = DECORM_BORDER|DECORM_TAB
|
||||
};
|
||||
|
||||
enum WindowType {
|
||||
|
|
Loading…
Reference in a new issue