diff options
author | fluxgen <fluxgen> | 2003-12-21 15:13:00 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-12-21 15:13:00 (GMT) |
commit | 8192e8bc2a34d55adae71322362890bace43de72 (patch) | |
tree | 58e6b0aee1cbdbb2eca2aa144151338cf562d935 /src/fluxbox.cc | |
parent | 70b945f0db0d2aa9882da67216556478e398de5d (diff) | |
download | fluxbox-8192e8bc2a34d55adae71322362890bace43de72.zip fluxbox-8192e8bc2a34d55adae71322362890bace43de72.tar.bz2 |
removed old save for window placement
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 4210f47..3808893 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: fluxbox.cc,v 1.210 2003/12/19 13:37:28 fluxgen Exp $ | 25 | // $Id: fluxbox.cc,v 1.211 2003/12/21 15:13:00 fluxgen Exp $ |
26 | 26 | ||
27 | #include "fluxbox.hh" | 27 | #include "fluxbox.hh" |
28 | 28 | ||
@@ -1531,42 +1531,6 @@ void Fluxbox::save_rc() { | |||
1531 | for (; it != it_end; ++it) { | 1531 | for (; it != it_end; ++it) { |
1532 | BScreen *screen = *it; | 1532 | BScreen *screen = *it; |
1533 | int screen_number = screen->screenNumber(); | 1533 | int screen_number = screen->screenNumber(); |
1534 | |||
1535 | sprintf(rc_string, "session.screen%d.rowPlacementDirection: %s", screen_number, | ||
1536 | ((screen->getRowPlacementDirection() == BScreen::LEFTRIGHT) ? | ||
1537 | "LeftToRight" : "RightToLeft")); | ||
1538 | XrmPutLineResource(&new_blackboxrc, rc_string); | ||
1539 | |||
1540 | sprintf(rc_string, "session.screen%d.colPlacementDirection: %s", screen_number, | ||
1541 | ((screen->getColPlacementDirection() == BScreen::TOPBOTTOM) ? | ||
1542 | "TopToBottom" : "BottomToTop")); | ||
1543 | XrmPutLineResource(&new_blackboxrc, rc_string); | ||
1544 | |||
1545 | string placement; | ||
1546 | |||
1547 | switch (screen->getPlacementPolicy()) { | ||
1548 | case BScreen::CASCADEPLACEMENT: | ||
1549 | placement = "CascadePlacement"; | ||
1550 | break; | ||
1551 | |||
1552 | case BScreen::COLSMARTPLACEMENT: | ||
1553 | placement = "ColSmartPlacement"; | ||
1554 | break; | ||
1555 | |||
1556 | case BScreen::UNDERMOUSEPLACEMENT: | ||
1557 | placement = "UnderMousePlacement"; | ||
1558 | break; | ||
1559 | |||
1560 | default: | ||
1561 | case BScreen::ROWSMARTPLACEMENT: | ||
1562 | placement = "RowSmartPlacement"; | ||
1563 | break; | ||
1564 | } | ||
1565 | |||
1566 | sprintf(rc_string, "session.screen%d.windowPlacement: %s", screen_number, | ||
1567 | placement.c_str()); | ||
1568 | XrmPutLineResource(&new_blackboxrc, rc_string); | ||
1569 | |||
1570 | 1534 | ||
1571 | // these are static, but may not be saved in the users resource file, | 1535 | // these are static, but may not be saved in the users resource file, |
1572 | // writing these resources will allow the user to edit them at a later | 1536 | // writing these resources will allow the user to edit them at a later |