From 61ed1fcfb0fe72eb26ffec0963b2501d30b3c4f5 Mon Sep 17 00:00:00 2001 From: markt Date: Fri, 23 Feb 2007 22:32:31 +0000 Subject: and check for maximized state in Ewmh::updateState() while we're at it --- src/Ewmh.cc | 4 ++++ src/Window.hh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/Ewmh.cc b/src/Ewmh.cc index ce5f1a3..8dd1959 100644 --- a/src/Ewmh.cc +++ b/src/Ewmh.cc @@ -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()) diff --git a/src/Window.hh b/src/Window.hh index 4e5956f..4923ca6 100644 --- a/src/Window.hh +++ b/src/Window.hh @@ -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; } -- cgit v0.11.2