From aba44f47aaae77780dcb658c6eb26a7724b20c1d Mon Sep 17 00:00:00 2001 From: mathias Date: Mon, 9 May 2005 06:09:37 +0000 Subject: fix for gentoo #91955, remembering the current window-position didnt store the reference corner to the appsfile. --- ChangeLog | 5 +++++ src/Remember.cc | 22 +++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6aeeecc..0a70c2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ (Format: Year/Month/Day) Changes for 0.9.13 +*05/05/09: + * Fix for gentoo-bug #91955 (thanx Julien Trolet) + Remembering the position of a window didnt store the reference + corner + Remember.cc *05/05/07: * Fix isses in patch from Vadim (thanx Vadim) FbTk/TextBox.cc diff --git a/src/Remember.cc b/src/Remember.cc index fb65444..c49ee35 100644 --- a/src/Remember.cc +++ b/src/Remember.cc @@ -567,7 +567,27 @@ void Remember::save() { apps_file << " [Dimensions]\t{" << a.w << " " << a.h << "}" << endl; } if (a.position_remember) { - apps_file << " [Position]\t{" << a.x << " " << a.y << "}" << endl; + apps_file << " [Position]\t("; + switch(a.refc) { + case POS_WINCENTER: + apps_file << "WINCENTER"; + break; + case POS_CENTER: + apps_file << "CENTER"; + break; + case POS_LOWERLEFT: + apps_file << "LOWERLEFT"; + break; + case POS_LOWERRIGHT: + apps_file << "LOWERRIGHT"; + break; + case POS_UPPERRIGHT: + apps_file << "UPPERRIGHT"; + break; + default: + apps_file << "UPPERLEFT"; + } + apps_file << ")\t{" << a.x << " " << a.y << "}" << endl; } if (a.shadedstate_remember) { apps_file << " [Shaded]\t{" << ((a.shadedstate)?"yes":"no") << "}" << endl; -- cgit v0.11.2