fix placement of windows with non-default decorations

This commit is contained in:
Mark Tiefenbruck 2008-09-21 00:04:01 -07:00
parent 4c11204716
commit 93ccd39a48
2 changed files with 5 additions and 2 deletions

View file

@ -1491,6 +1491,7 @@ void FbWinFrame::applyDecorations(bool do_move) {
if (do_move)
reconfigure();
m_state.saveGeometry(x(), y(), width(), height());
if (client_move)
frameExtentSig().notify();
}

View file

@ -60,8 +60,10 @@ bool MinOverlapPlacement::placeWindow(const FluxboxWindow &win, int head,
s_row_dir = screen_placement.rowDirection();
s_col_dir = screen_placement.colDirection();
int win_w = win.width() + win.fbWindow().borderWidth()*2 + win.widthOffset();
int win_h = win.height() + win.fbWindow().borderWidth()*2 + win.heightOffset();
int win_w = win.normalWidth() + win.fbWindow().borderWidth()*2 +
win.widthOffset();
int win_h = win.normalHeight() + win.fbWindow().borderWidth()*2 +
win.heightOffset();
// we keep a set of open spaces on the desktop, sorted by size/location
std::set<Region> region_set;