aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2006-02-12 12:13:37 (GMT)
committerfluxgen <fluxgen>2006-02-12 12:13:37 (GMT)
commit6f1c084a465c5207cdfe510318c20b319ed818f8 (patch)
tree542562d211d96c2371cac231e4c2554551493e39
parent2d965148cab4c2edbf39ebaac4721f4252d83ae2 (diff)
downloadfluxbox_paul-6f1c084a465c5207cdfe510318c20b319ed818f8.zip
fluxbox_paul-6f1c084a465c5207cdfe510318c20b319ed818f8.tar.bz2
fixed bug #1417688, remember apps keeps incrementing vertical dimension
-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());