aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Remember.cc')
-rw-r--r--src/Remember.cc7
1 files 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) {
367 unsigned int h,w; 367 unsigned int h,w;
368 FbTk_istringstream iss(str_label.c_str()); 368 FbTk_istringstream iss(str_label.c_str());
369 iss >> w >> h; 369 iss >> w >> h;
370 app.rememberDimensions(w,h); 370
371 app.rememberDimensions(w, h);
372
371 } else if (str_key == "Position") { 373 } else if (str_key == "Position") {
372 unsigned int r= 0; 374 unsigned int r= 0;
373 unsigned int x= 0; 375 unsigned int x= 0;
@@ -728,7 +730,8 @@ void Remember::rememberAttrib(WinClient &winclient, Attribute attrib) {
728 app->rememberHead(win->screen().getHead(win->fbWindow())); 730 app->rememberHead(win->screen().getHead(win->fbWindow()));
729 break; 731 break;
730 case REM_DIMENSIONS: 732 case REM_DIMENSIONS:
731 app->rememberDimensions(win->width(), win->height()); 733 //!! Note: This is odd, why dont we need to substract border width on win->width() ?
734 app->rememberDimensions(win->width(), win->height() - 2 * win->fbWindow().borderWidth());
732 break; 735 break;
733 case REM_POSITION: 736 case REM_POSITION:
734 app->rememberPosition(win->x(), win->y()); 737 app->rememberPosition(win->x(), win->y());