diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-09-21 07:04:01 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-09-21 07:04:01 (GMT) |
commit | 93ccd39a4897710b298c7bd947ed3e91ccca879e (patch) | |
tree | 14b83405ed3d2d357aa8e5a6ab3cb44ec677c93a /src | |
parent | 4c11204716c3e31d853cb071239cafea52a92efc (diff) | |
download | fluxbox-93ccd39a4897710b298c7bd947ed3e91ccca879e.zip fluxbox-93ccd39a4897710b298c7bd947ed3e91ccca879e.tar.bz2 |
fix placement of windows with non-default decorations
Diffstat (limited to 'src')
-rw-r--r-- | src/FbWinFrame.cc | 1 | ||||
-rw-r--r-- | src/MinOverlapPlacement.cc | 6 |
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; |