all repos — fluxbox @ 6f1c084a465c5207cdfe510318c20b319ed818f8

custom fork of the fluxbox windowmanager

fixed bug #1417688, remember apps keeps incrementing vertical dimension
fluxgen fluxgen
commit

6f1c084a465c5207cdfe510318c20b319ed818f8

parent

2d965148cab4c2edbf39ebaac4721f4252d83ae2

1 files changed, 5 insertions(+), 2 deletions(-)

jump to
M src/Remember.ccsrc/Remember.cc

@@ -367,7 +367,9 @@ } else if (str_key == "Dimensions") {

unsigned int h,w; FbTk_istringstream iss(str_label.c_str()); iss >> w >> h; - app.rememberDimensions(w,h); + + app.rememberDimensions(w, h); + } else if (str_key == "Position") { unsigned int r= 0; unsigned int x= 0;

@@ -728,7 +730,8 @@ case REM_HEAD:

app->rememberHead(win->screen().getHead(win->fbWindow())); break; case REM_DIMENSIONS: - app->rememberDimensions(win->width(), win->height()); + //!! Note: This is odd, why dont we need to substract border width on win->width() ? + app->rememberDimensions(win->width(), win->height() - 2 * win->fbWindow().borderWidth()); break; case REM_POSITION: app->rememberPosition(win->x(), win->y());