aboutsummaryrefslogtreecommitdiff
path: root/src/MinOverlapPlacement.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/MinOverlapPlacement.cc')
-rw-r--r--src/MinOverlapPlacement.cc6
1 files changed, 4 insertions, 2 deletions
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;