and check for maximized state in Ewmh::updateState() while we're at it
markt markt
2 files changed,
6 insertions(+),
0 deletions(-)
M
src/Ewmh.cc
→
src/Ewmh.cc
@@ -606,6 +606,10 @@ typedef vector<unsigned int> StateVec;
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())
M
src/Window.hh
→
src/Window.hh
@@ -342,6 +342,8 @@ inline bool isShaded() { return shaded; }
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; }