all repos — fluxbox @ aba44f47aaae77780dcb658c6eb26a7724b20c1d

custom fork of the fluxbox windowmanager

fix for gentoo #91955, remembering the current window-position didnt store the
reference corner to the appsfile.
mathias mathias
commit

aba44f47aaae77780dcb658c6eb26a7724b20c1d

parent

4ddda95f20280da40b0f9412d340119141f70d46

2 files changed, 26 insertions(+), 1 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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.ccsrc/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;