aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-07-31 15:26:47 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-08-27 06:54:26 (GMT)
commit3df681da2d274fa215ca98faa9507bcb5949ef52 (patch)
tree080d6f8cdb4fb9c6bd244e7f6f7f9e777a453078 /src
parent299e098f5f6fc6d33684b3d4e80185c8a7899664 (diff)
downloadfluxbox-3df681da2d274fa215ca98faa9507bcb5949ef52.zip
fluxbox-3df681da2d274fa215ca98faa9507bcb5949ef52.tar.bz2
apply size hints when applying the state
There's a setting about maximization which allows to control whether the resize increments should be honored when maximizing windows. This is currently used to control whether maximized windows may resize themselves via (rare) configure events, but not when maximizing windows - what's somehow not what the config item sells. BUG: 914
Diffstat (limited to 'src')
-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);