aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index d886eeb..1cdc647 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1621,26 +1621,6 @@ void Fluxbox::load_rc(BScreen &screen) {
1621 } 1621 }
1622} 1622}
1623 1623
1624void Fluxbox::loadRootCommand(BScreen &screen) {
1625
1626 string dbfile(getRcFilename());
1627
1628 XrmDatabaseHelper database(dbfile.c_str());
1629 if (!*database)
1630 database = XrmGetFileDatabase(DEFAULT_INITFILE);
1631
1632 XrmValue value;
1633 char *value_type, name_lookup[1024], class_lookup[1024];
1634 sprintf(name_lookup, "session.screen%d.rootCommand", screen.screenNumber());
1635 sprintf(class_lookup, "Session.Screen%d.RootCommand", screen.screenNumber());
1636 if (XrmGetResource(*database, name_lookup, class_lookup, &value_type,
1637 &value)) {
1638 screen.saveRootCommand(value.addr==0 ? "": value.addr);
1639 } else
1640 screen.saveRootCommand("");
1641
1642}
1643
1644void Fluxbox::reload_rc() { 1624void Fluxbox::reload_rc() {
1645 load_rc(); 1625 load_rc();
1646 reconfigure(); 1626 reconfigure();