diff options
author | markt <markt> | 2007-07-02 21:26:11 (GMT) |
---|---|---|
committer | markt <markt> | 2007-07-02 21:26:11 (GMT) |
commit | 163474a471f0a7a72a99a57c995c831b4a0af51b (patch) | |
tree | 51b2b721ceaa7b3f09b2f99fafe9c77c0c1bb31e /src/Window.cc | |
parent | 7e8c35211694cb98bfc8ac8e9ac3643795ac4624 (diff) | |
download | fluxbox-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.cc | 26 |
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 | ||
3785 | int FluxboxWindow::normalX() const { | ||
3786 | if (maximized & MAX_HORZ) | ||
3787 | return m_old_pos_x; | ||
3788 | return x(); | ||
3789 | } | ||
3790 | |||
3791 | int FluxboxWindow::normalY() const { | ||
3792 | if (maximized & MAX_VERT) | ||
3793 | return m_old_pos_y; | ||
3794 | return y(); | ||
3795 | } | ||
3796 | |||
3797 | unsigned int FluxboxWindow::normalWidth() const { | ||
3798 | if (maximized & MAX_HORZ) | ||
3799 | return m_old_width; | ||
3800 | return width(); | ||
3801 | } | ||
3802 | |||
3803 | unsigned 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 | |||
3785 | int FluxboxWindow::initialState() const { return m_client->initial_state; } | 3811 | int FluxboxWindow::initialState() const { return m_client->initial_state; } |
3786 | 3812 | ||
3787 | void FluxboxWindow::changeBlackboxHints(const BlackboxHints &net) { | 3813 | void FluxboxWindow::changeBlackboxHints(const BlackboxHints &net) { |