summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormarkt <markt>2007-02-23 22:32:31 (GMT)
committermarkt <markt>2007-02-23 22:32:31 (GMT)
commit61ed1fcfb0fe72eb26ffec0963b2501d30b3c4f5 (patch)
tree067cc76bb4f777c99415ecbfb4095fc43cf90eaf /src
parent002e6232c99bda93aaed8f97ef1b33184f2c9fba (diff)
downloadfluxbox_lack-61ed1fcfb0fe72eb26ffec0963b2501d30b3c4f5.zip
fluxbox_lack-61ed1fcfb0fe72eb26ffec0963b2501d30b3c4f5.tar.bz2
and check for maximized state in Ewmh::updateState() while we're at it
Diffstat (limited to 'src')
-rw-r--r--src/Ewmh.cc4
-rw-r--r--src/Window.hh2
2 files changed, 6 insertions, 0 deletions
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) {
606 606
607 StateVec state; 607 StateVec state;
608 608
609 if (win.isMaximizedHorz())
610 state.push_back(m_net_wm_state_maximized_horz);
611 if (win.isMaximizedVert())
612 state.push_back(m_net_wm_state_maximized_vert);
609 if (win.isStuck()) 613 if (win.isStuck())
610 state.push_back(m_net_wm_state_sticky); 614 state.push_back(m_net_wm_state_sticky);
611 if (win.isShaded()) 615 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:
342 inline bool isShaded() const { return shaded; } 342 inline bool isShaded() const { return shaded; }
343 inline bool isFullscreen() const { return fullscreen; } 343 inline bool isFullscreen() const { return fullscreen; }
344 inline bool isMaximized() const { return maximized == MAX_FULL; } 344 inline bool isMaximized() const { return maximized == MAX_FULL; }
345 inline bool isMaximizedVert() const { return (bool)(maximized & MAX_VERT); }
346 inline bool isMaximizedHorz() const { return (bool)(maximized & MAX_HORZ); }
345 inline bool isIconifiable() const { return functions.iconify; } 347 inline bool isIconifiable() const { return functions.iconify; }
346 inline bool isMaximizable() const { return functions.maximize; } 348 inline bool isMaximizable() const { return functions.maximize; }
347 inline bool isResizable() const { return functions.resize; } 349 inline bool isResizable() const { return functions.resize; }