all repos — fluxbox @ 61ed1fcfb0fe72eb26ffec0963b2501d30b3c4f5

custom fork of the fluxbox windowmanager

and check for maximized state in Ewmh::updateState() while we're at it
markt markt
commit

61ed1fcfb0fe72eb26ffec0963b2501d30b3c4f5

parent

002e6232c99bda93aaed8f97ef1b33184f2c9fba

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/Ewmh.ccsrc/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.hhsrc/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; }