fix for gentoo #91955, remembering the current window-position didnt store the
reference corner to the appsfile.
This commit is contained in:
parent
4ddda95f20
commit
aba44f47aa
2 changed files with 26 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue