aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/FbWinFrame.cc1
-rw-r--r--src/MinOverlapPlacement.cc6
2 files changed, 5 insertions, 2 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index fc35ae1..72073ab 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -1491,6 +1491,7 @@ void FbWinFrame::applyDecorations(bool do_move) {
1491 1491
1492 if (do_move) 1492 if (do_move)
1493 reconfigure(); 1493 reconfigure();
1494 m_state.saveGeometry(x(), y(), width(), height());
1494 if (client_move) 1495 if (client_move)
1495 frameExtentSig().notify(); 1496 frameExtentSig().notify();
1496} 1497}
diff --git a/src/MinOverlapPlacement.cc b/src/MinOverlapPlacement.cc
index eb2ce3f..cea4f51 100644
--- a/src/MinOverlapPlacement.cc
+++ b/src/MinOverlapPlacement.cc
@@ -60,8 +60,10 @@ bool MinOverlapPlacement::placeWindow(const FluxboxWindow &win, int head,
60 s_row_dir = screen_placement.rowDirection(); 60 s_row_dir = screen_placement.rowDirection();
61 s_col_dir = screen_placement.colDirection(); 61 s_col_dir = screen_placement.colDirection();
62 62
63 int win_w = win.width() + win.fbWindow().borderWidth()*2 + win.widthOffset(); 63 int win_w = win.normalWidth() + win.fbWindow().borderWidth()*2 +
64 int win_h = win.height() + win.fbWindow().borderWidth()*2 + win.heightOffset(); 64 win.widthOffset();
65 int win_h = win.normalHeight() + win.fbWindow().borderWidth()*2 +
66 win.heightOffset();
65 67
66 // we keep a set of open spaces on the desktop, sorted by size/location 68 // we keep a set of open spaces on the desktop, sorted by size/location
67 std::set<Region> region_set; 69 std::set<Region> region_set;