aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-09-03 14:41:05 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-09-03 14:41:05 (GMT)
commitba03aaaa33af1f405b91e57aa49958547c5ed39f (patch)
treed149540f17b04e793ed95650723b256c454c6372 /src/FbWinFrame.cc
parent60a4c7d9f6a0fc997e11898f9042977922026052 (diff)
downloadfluxbox-ba03aaaa33af1f405b91e57aa49958547c5ed39f.zip
fluxbox-ba03aaaa33af1f405b91e57aa49958547c5ed39f.tar.bz2
fix maximize/fullscreen for windows with non-Northwest gravity
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 8617c1b..435f2fb 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -504,7 +504,7 @@ void FbWinFrame::setFocus(bool newvalue) {
504} 504}
505 505
506void FbWinFrame::applyState() { 506void FbWinFrame::applyState() {
507 applyDecorations(); 507 applyDecorations(false);
508 508
509 const int head = m_screen.getHead(window()); 509 const int head = m_screen.getHead(window());
510 int new_x = m_state.x, new_y = m_state.y; 510 int new_x = m_state.x, new_y = m_state.y;
@@ -1445,7 +1445,7 @@ int FbWinFrame::getShape() const {
1445 return shape; 1445 return shape;
1446} 1446}
1447 1447
1448void FbWinFrame::applyDecorations() { 1448void FbWinFrame::applyDecorations(bool do_move) {
1449 int grav_x=0, grav_y=0; 1449 int grav_x=0, grav_y=0;
1450 // negate gravity 1450 // negate gravity
1451 gravityTranslate(grav_x, grav_y, -sizeHints().win_gravity, m_active_orig_client_bw, 1451 gravityTranslate(grav_x, grav_y, -sizeHints().win_gravity, m_active_orig_client_bw,
@@ -1484,7 +1484,7 @@ void FbWinFrame::applyDecorations() {
1484 false); 1484 false);
1485 1485
1486 // if the location changes, shift it 1486 // if the location changes, shift it
1487 if (grav_x != 0 || grav_y != 0) { 1487 if (do_move && (grav_x != 0 || grav_y != 0)) {
1488 move(grav_x + x(), grav_y + y()); 1488 move(grav_x + x(), grav_y + y());
1489 client_move = true; 1489 client_move = true;
1490 } 1490 }