aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-07-02 21:26:11 (GMT)
committermarkt <markt>2007-07-02 21:26:11 (GMT)
commit163474a471f0a7a72a99a57c995c831b4a0af51b (patch)
tree51b2b721ceaa7b3f09b2f99fafe9c77c0c1bb31e /src/Window.cc
parent7e8c35211694cb98bfc8ac8e9ac3643795ac4624 (diff)
downloadfluxbox-163474a471f0a7a72a99a57c995c831b4a0af51b.zip
fluxbox-163474a471f0a7a72a99a57c995c831b4a0af51b.tar.bz2
use old size/position in apps file when window is shaded or maximized
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 4ddd8c8..e9d57c2 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -3782,6 +3782,32 @@ std::string FluxboxWindow::getWMRole() const {
3782 return (m_client ? m_client->getWMRole() : "FluxboxWindow"); 3782 return (m_client ? m_client->getWMRole() : "FluxboxWindow");
3783} 3783}
3784 3784
3785int FluxboxWindow::normalX() const {
3786 if (maximized & MAX_HORZ)
3787 return m_old_pos_x;
3788 return x();
3789}
3790
3791int FluxboxWindow::normalY() const {
3792 if (maximized & MAX_VERT)
3793 return m_old_pos_y;
3794 return y();
3795}
3796
3797unsigned int FluxboxWindow::normalWidth() const {
3798 if (maximized & MAX_HORZ)
3799 return m_old_width;
3800 return width();
3801}
3802
3803unsigned int FluxboxWindow::normalHeight() const {
3804 if (maximized & MAX_VERT)
3805 return m_old_height;
3806 if (shaded)
3807 return frame().normalHeight();
3808 return height();
3809}
3810
3785int FluxboxWindow::initialState() const { return m_client->initial_state; } 3811int FluxboxWindow::initialState() const { return m_client->initial_state; }
3786 3812
3787void FluxboxWindow::changeBlackboxHints(const BlackboxHints &net) { 3813void FluxboxWindow::changeBlackboxHints(const BlackboxHints &net) {