and check for maximized state in Ewmh::updateState() while we're at it
This commit is contained in:
parent
002e6232c9
commit
61ed1fcfb0
2 changed files with 6 additions and 0 deletions
|
@ -606,6 +606,10 @@ void Ewmh::updateState(FluxboxWindow &win) {
|
|||
|
||||
StateVec state;
|
||||
|
||||
if (win.isMaximizedHorz())
|
||||
state.push_back(m_net_wm_state_maximized_horz);
|
||||
if (win.isMaximizedVert())
|
||||
state.push_back(m_net_wm_state_maximized_vert);
|
||||
if (win.isStuck())
|
||||
state.push_back(m_net_wm_state_sticky);
|
||||
if (win.isShaded())
|
||||
|
|
|
@ -342,6 +342,8 @@ public:
|
|||
inline bool isShaded() const { return shaded; }
|
||||
inline bool isFullscreen() const { return fullscreen; }
|
||||
inline bool isMaximized() const { return maximized == MAX_FULL; }
|
||||
inline bool isMaximizedVert() const { return (bool)(maximized & MAX_VERT); }
|
||||
inline bool isMaximizedHorz() const { return (bool)(maximized & MAX_HORZ); }
|
||||
inline bool isIconifiable() const { return functions.iconify; }
|
||||
inline bool isMaximizable() const { return functions.maximize; }
|
||||
inline bool isResizable() const { return functions.resize; }
|
||||
|
|
Loading…
Reference in a new issue