Added maxoverslit resource

This commit is contained in:
fluxgen 2002-01-05 10:57:31 +00:00
parent bec0065e4a
commit ffe908dc2a

View file

@ -1529,6 +1529,10 @@ void Fluxbox::save_rc(void) {
XrmPutLineResource(&new_blackboxrc, rc_string); XrmPutLineResource(&new_blackboxrc, rc_string);
char *placement = (char *) 0; char *placement = (char *) 0;
sprintf(rc_string, "session.screen%d.maxOverSlit: %s", screen_number,
((screen->doMaxOverSlit()) ? "True" : "False"));
XrmPutLineResource(&new_blackboxrc, rc_string);
switch (screen->getPlacementPolicy()) { switch (screen->getPlacementPolicy()) {
case BScreen::CascadePlacement: case BScreen::CascadePlacement:
placement = "CascadePlacement"; placement = "CascadePlacement";
@ -1976,6 +1980,17 @@ void Fluxbox::load_rc(BScreen *screen) {
if (! strncasecmp(value.addr, "righttoleft", value.size)) if (! strncasecmp(value.addr, "righttoleft", value.size))
screen->saveRowPlacementDirection(BScreen::RightLeft); screen->saveRowPlacementDirection(BScreen::RightLeft);
else else
sprintf(name_lookup, "session.screen%d.maxOverSlit", screen_number);
sprintf(class_lookup, "Session.Screen%d.MaxOverSlit", screen_number);
if (XrmGetResource(database, name_lookup, class_lookup, &value_type,
&value)) {
if (! strncasecmp(value.addr, "true", value.size))
screen->saveMaxOverSlit(True);
else
screen->saveMaxOverSlit(False);
} else
screen->saveMaxOverSlit(False);
screen->saveRowPlacementDirection(BScreen::LeftRight); screen->saveRowPlacementDirection(BScreen::LeftRight);
} else } else
screen->saveRowPlacementDirection(BScreen::LeftRight); screen->saveRowPlacementDirection(BScreen::LeftRight);