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 2434d31..af74074 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -3735,6 +3735,32 @@ const string &FluxboxWindow::iconTitle() const { | |||
3735 | return m_client->iconTitle(); | 3735 | return m_client->iconTitle(); |
3736 | } | 3736 | } |
3737 | 3737 | ||
3738 | int FluxboxWindow::normalX() const { | ||
3739 | if (maximized & MAX_HORZ) | ||
3740 | return m_old_pos_x; | ||
3741 | return x(); | ||
3742 | } | ||
3743 | |||
3744 | int FluxboxWindow::normalY() const { | ||
3745 | if (maximized & MAX_VERT) | ||
3746 | return m_old_pos_y; | ||
3747 | return y(); | ||
3748 | } | ||
3749 | |||
3750 | unsigned int FluxboxWindow::normalWidth() const { | ||
3751 | if (maximized & MAX_HORZ) | ||
3752 | return m_old_width; | ||
3753 | return width(); | ||
3754 | } | ||
3755 | |||
3756 | unsigned int FluxboxWindow::normalHeight() const { | ||
3757 | if (maximized & MAX_VERT) | ||
3758 | return m_old_height; | ||
3759 | if (shaded) | ||
3760 | return frame().normalHeight(); | ||
3761 | return height(); | ||
3762 | } | ||
3763 | |||
3738 | int FluxboxWindow::initialState() const { return m_client->initial_state; } | 3764 | int FluxboxWindow::initialState() const { return m_client->initial_state; } |
3739 | 3765 | ||
3740 | void FluxboxWindow::changeBlackboxHints(const BlackboxHints &net) { | 3766 | void FluxboxWindow::changeBlackboxHints(const BlackboxHints &net) { |