aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathias <mathias>2005-05-09 06:09:37 (GMT)
committermathias <mathias>2005-05-09 06:09:37 (GMT)
commitaba44f47aaae77780dcb658c6eb26a7724b20c1d (patch)
tree00ff07db5c56c20529ba6fbcbee630dc7c2c6b35 /src
parent4ddda95f20280da40b0f9412d340119141f70d46 (diff)
downloadfluxbox-aba44f47aaae77780dcb658c6eb26a7724b20c1d.zip
fluxbox-aba44f47aaae77780dcb658c6eb26a7724b20c1d.tar.bz2
fix for gentoo #91955, remembering the current window-position didnt store the
reference corner to the appsfile.
Diffstat (limited to 'src')
-rw-r--r--src/Remember.cc22
1 files changed, 21 insertions, 1 deletions
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() {
567 apps_file << " [Dimensions]\t{" << a.w << " " << a.h << "}" << endl; 567 apps_file << " [Dimensions]\t{" << a.w << " " << a.h << "}" << endl;
568 } 568 }
569 if (a.position_remember) { 569 if (a.position_remember) {
570 apps_file << " [Position]\t{" << a.x << " " << a.y << "}" << endl; 570 apps_file << " [Position]\t(";
571 switch(a.refc) {
572 case POS_WINCENTER:
573 apps_file << "WINCENTER";
574 break;
575 case POS_CENTER:
576 apps_file << "CENTER";
577 break;
578 case POS_LOWERLEFT:
579 apps_file << "LOWERLEFT";
580 break;
581 case POS_LOWERRIGHT:
582 apps_file << "LOWERRIGHT";
583 break;
584 case POS_UPPERRIGHT:
585 apps_file << "UPPERRIGHT";
586 break;
587 default:
588 apps_file << "UPPERLEFT";
589 }
590 apps_file << ")\t{" << a.x << " " << a.y << "}" << endl;
571 } 591 }
572 if (a.shadedstate_remember) { 592 if (a.shadedstate_remember) {
573 apps_file << " [Shaded]\t{" << ((a.shadedstate)?"yes":"no") << "}" << endl; 593 apps_file << " [Shaded]\t{" << ((a.shadedstate)?"yes":"no") << "}" << endl;