From 6f1c084a465c5207cdfe510318c20b319ed818f8 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 12 Feb 2006 12:13:37 +0000 Subject: fixed bug #1417688, remember apps keeps incrementing vertical dimension --- src/Remember.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Remember.cc b/src/Remember.cc index a855bd2..3734824 100644 --- a/src/Remember.cc +++ b/src/Remember.cc @@ -367,7 +367,9 @@ int Remember::parseApp(ifstream &file, Application &app, string *first_line) { 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 @@ void Remember::rememberAttrib(WinClient &winclient, Attribute attrib) { 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()); -- cgit v0.11.2