aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-01-05 10:57:31 (GMT)
committerfluxgen <fluxgen>2002-01-05 10:57:31 (GMT)
commitffe908dc2afb643a197b30a98c282f7d9ad94599 (patch)
treefa6096a60159ea617cf70611d159e94eb6ff601d
parentbec0065e4a5a4d0c487bd47ec208b9d30a7b9399 (diff)
downloadfluxbox_paul-ffe908dc2afb643a197b30a98c282f7d9ad94599.zip
fluxbox_paul-ffe908dc2afb643a197b30a98c282f7d9ad94599.tar.bz2
Added maxoverslit resource
-rw-r--r--src/fluxbox.cc15
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);