diff options
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) { |