aboutsummaryrefslogtreecommitdiff
path: root/src/MinOverlapPlacement.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-09-21 07:04:01 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-09-21 07:04:01 (GMT)
commit93ccd39a4897710b298c7bd947ed3e91ccca879e (patch)
tree14b83405ed3d2d357aa8e5a6ab3cb44ec677c93a /src/MinOverlapPlacement.cc
parent4c11204716c3e31d853cb071239cafea52a92efc (diff)
downloadfluxbox-93ccd39a4897710b298c7bd947ed3e91ccca879e.zip
fluxbox-93ccd39a4897710b298c7bd947ed3e91ccca879e.tar.bz2
fix placement of windows with non-default decorations
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;