summaryrefslogtreecommitdiff
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
parent4ddda95f20280da40b0f9412d340119141f70d46 (diff)
downloadfluxbox_lack-aba44f47aaae77780dcb658c6eb26a7724b20c1d.zip
fluxbox_lack-aba44f47aaae77780dcb658c6eb26a7724b20c1d.tar.bz2
fix for gentoo #91955, remembering the current window-position didnt store the
reference corner to the appsfile.
-rw-r--r--ChangeLog5
-rw-r--r--src/Remember.cc22
2 files changed, 26 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6aeeecc..0a70c2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
1(Format: Year/Month/Day) 1(Format: Year/Month/Day)
2Changes for 0.9.13 2Changes for 0.9.13
3*05/05/09:
4 * Fix for gentoo-bug #91955 (thanx Julien Trolet)
5 Remembering the position of a window didnt store the reference
6 corner
7 Remember.cc
3*05/05/07: 8*05/05/07:
4 * Fix isses in patch from Vadim (thanx Vadim) 9 * Fix isses in patch from Vadim (thanx Vadim)
5 FbTk/TextBox.cc 10 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() {
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;