diff options
-rw-r--r-- | src/fluxbox.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index f1b1cca..23f1ebf 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -1529,6 +1529,10 @@ void Fluxbox::save_rc(void) { | |||
1529 | XrmPutLineResource(&new_blackboxrc, rc_string); | 1529 | XrmPutLineResource(&new_blackboxrc, rc_string); |
1530 | 1530 | ||
1531 | char *placement = (char *) 0; | 1531 | char *placement = (char *) 0; |
1532 | |||
1533 | sprintf(rc_string, "session.screen%d.maxOverSlit: %s", screen_number, | ||
1534 | ((screen->doMaxOverSlit()) ? "True" : "False")); | ||
1535 | XrmPutLineResource(&new_blackboxrc, rc_string); | ||
1532 | switch (screen->getPlacementPolicy()) { | 1536 | switch (screen->getPlacementPolicy()) { |
1533 | case BScreen::CascadePlacement: | 1537 | case BScreen::CascadePlacement: |
1534 | placement = "CascadePlacement"; | 1538 | placement = "CascadePlacement"; |
@@ -1976,6 +1980,17 @@ void Fluxbox::load_rc(BScreen *screen) { | |||
1976 | if (! strncasecmp(value.addr, "righttoleft", value.size)) | 1980 | if (! strncasecmp(value.addr, "righttoleft", value.size)) |
1977 | screen->saveRowPlacementDirection(BScreen::RightLeft); | 1981 | screen->saveRowPlacementDirection(BScreen::RightLeft); |
1978 | else | 1982 | else |
1983 | |||
1984 | sprintf(name_lookup, "session.screen%d.maxOverSlit", screen_number); | ||
1985 | sprintf(class_lookup, "Session.Screen%d.MaxOverSlit", screen_number); | ||
1986 | if (XrmGetResource(database, name_lookup, class_lookup, &value_type, | ||
1987 | &value)) { | ||
1988 | if (! strncasecmp(value.addr, "true", value.size)) | ||
1989 | screen->saveMaxOverSlit(True); | ||
1990 | else | ||
1991 | screen->saveMaxOverSlit(False); | ||
1992 | } else | ||
1993 | screen->saveMaxOverSlit(False); | ||
1979 | screen->saveRowPlacementDirection(BScreen::LeftRight); | 1994 | screen->saveRowPlacementDirection(BScreen::LeftRight); |
1980 | } else | 1995 | } else |
1981 | screen->saveRowPlacementDirection(BScreen::LeftRight); | 1996 | screen->saveRowPlacementDirection(BScreen::LeftRight); |