fix for gentoo #91955, remembering the current window-position didnt store the reference corner to the appsfile.
mathias mathias
2 files changed,
26 insertions(+),
1 deletions(-)
M
ChangeLog
→
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
M
src/Remember.cc
→
src/Remember.cc
@@ -567,7 +567,27 @@ if (a.dimensions_remember) {
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;