diff options
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r-- | src/FbWinFrame.cc | 6 |
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 | ||
506 | void FbWinFrame::applyState() { | 506 | void 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 | ||
1448 | void FbWinFrame::applyDecorations() { | 1448 | void 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 | } |