aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbWinFrame.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 21f174b..3965068 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -494,14 +494,16 @@ void FbWinFrame::applyState() {
494 } 494 }
495 } 495 }
496 496
497 if (m_state.shaded) 497 if (m_state.shaded) {
498 new_h = m_titlebar.height(); 498 new_h = m_titlebar.height();
499 499 } else if (m_state.fullscreen) {
500 if (m_state.fullscreen) {
501 new_x = m_screen.getHeadX(head); 500 new_x = m_screen.getHeadX(head);
502 new_y = m_screen.getHeadY(head); 501 new_y = m_screen.getHeadY(head);
503 new_w = m_screen.getHeadWidth(head); 502 new_w = m_screen.getHeadWidth(head);
504 new_h = m_screen.getHeadHeight(head); 503 new_h = m_screen.getHeadHeight(head);
504 } else {
505 applySizeHints(new_w, new_h, m_state.maximized == WindowState::MAX_NONE ||
506 !m_screen.getMaxIgnoreIncrement());
505 } 507 }
506 508
507 moveResize(new_x, new_y, new_w, new_h, true, true, true); 509 moveResize(new_x, new_y, new_w, new_h, true, true, true);