fixed bug #1417688, remember apps keeps incrementing vertical dimension
fluxgen fluxgen
1 files changed,
5 insertions(+),
2 deletions(-)
jump to
M
src/Remember.cc
→
src/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());