diff options
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 0dc958d..590a946 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -233,28 +233,28 @@ Fluxbox::Fluxbox(int argc, char **argv, | |||
233 | const std::string& rc_path, const std::string& rc_filename, bool xsync) | 233 | const std::string& rc_path, const std::string& rc_filename, bool xsync) |
234 | : FbTk::App(dpy_name.c_str()), | 234 | : FbTk::App(dpy_name.c_str()), |
235 | m_fbatoms(FbAtoms::instance()), | 235 | m_fbatoms(FbAtoms::instance()), |
236 | m_resourcemanager(rc_filename.c_str(), true), | 236 | m_resourcemanager("session", "Session", rc_filename.c_str(), true), |
237 | // TODO: shouldn't need a separate one for screen | 237 | // TODO: shouldn't need a separate one for screen |
238 | m_screen_rm(m_resourcemanager), | 238 | m_screen_rm(m_resourcemanager), |
239 | 239 | ||
240 | m_RC_PATH(rc_path), | 240 | m_RC_PATH(rc_path), |
241 | m_RC_INIT_FILE("init"), | 241 | m_RC_INIT_FILE("init"), |
242 | m_rc_ignoreborder(m_resourcemanager, false, "session.ignoreBorder", "Session.IgnoreBorder"), | 242 | m_rc_ignoreborder(m_resourcemanager, false, "ignoreBorder", "IgnoreBorder"), |
243 | m_rc_pseudotrans(m_resourcemanager, false, "session.forcePseudoTransparency", "Session.forcePseudoTransparency"), | 243 | m_rc_pseudotrans(m_resourcemanager, false, "forcePseudoTransparency", "forcePseudoTransparency"), |
244 | m_rc_colors_per_channel(m_resourcemanager, 4, | 244 | m_rc_colors_per_channel(m_resourcemanager, 4, |
245 | "session.colorsPerChannel", "Session.ColorsPerChannel"), | 245 | "colorsPerChannel", "ColorsPerChannel"), |
246 | m_rc_double_click_interval(m_resourcemanager, 250, "session.doubleClickInterval", "Session.DoubleClickInterval"), | 246 | m_rc_double_click_interval(m_resourcemanager, 250, "doubleClickInterval", "DoubleClickInterval"), |
247 | m_rc_tabs_padding(m_resourcemanager, 0, "session.tabPadding", "Session.TabPadding"), | 247 | m_rc_tabs_padding(m_resourcemanager, 0, "tabPadding", "TabPadding"), |
248 | m_rc_stylefile(m_resourcemanager, DEFAULTSTYLE, "session.styleFile", "Session.StyleFile"), | 248 | m_rc_stylefile(m_resourcemanager, DEFAULTSTYLE, "styleFile", "StyleFile"), |
249 | m_rc_styleoverlayfile(m_resourcemanager, m_RC_PATH + "/overlay", "session.styleOverlay", "Session.StyleOverlay"), | 249 | m_rc_styleoverlayfile(m_resourcemanager, m_RC_PATH + "/overlay", "styleOverlay", "StyleOverlay"), |
250 | m_rc_menufile(m_resourcemanager, m_RC_PATH + "/menu", "session.menuFile", "Session.MenuFile"), | 250 | m_rc_menufile(m_resourcemanager, m_RC_PATH + "/menu", "menuFile", "MenuFile"), |
251 | m_rc_keyfile(m_resourcemanager, m_RC_PATH + "/keys", "session.keyFile", "Session.KeyFile"), | 251 | m_rc_keyfile(m_resourcemanager, m_RC_PATH + "/keys", "keyFile", "KeyFile"), |
252 | m_rc_slitlistfile(m_resourcemanager, m_RC_PATH + "/slitlist", "session.slitlistFile", "Session.SlitlistFile"), | 252 | m_rc_slitlistfile(m_resourcemanager, m_RC_PATH + "/slitlist", "slitlistFile", "SlitlistFile"), |
253 | m_rc_appsfile(m_resourcemanager, m_RC_PATH + "/apps", "session.appsFile", "Session.AppsFile"), | 253 | m_rc_appsfile(m_resourcemanager, m_RC_PATH + "/apps", "appsFile", "AppsFile"), |
254 | m_rc_tabs_attach_area(m_resourcemanager, ATTACH_AREA_WINDOW, "session.tabsAttachArea", "Session.TabsAttachArea"), | 254 | m_rc_tabs_attach_area(m_resourcemanager, ATTACH_AREA_WINDOW, "tabsAttachArea", "TabsAttachArea"), |
255 | m_rc_cache_life(m_resourcemanager, 5, "session.cacheLife", "Session.CacheLife"), | 255 | m_rc_cache_life(m_resourcemanager, 5, "cacheLife", "CacheLife"), |
256 | m_rc_cache_max(m_resourcemanager, 200, "session.cacheMax", "Session.CacheMax"), | 256 | m_rc_cache_max(m_resourcemanager, 200, "cacheMax", "CacheMax"), |
257 | m_rc_auto_raise_delay(m_resourcemanager, 250, "session.autoRaiseDelay", "Session.AutoRaiseDelay"), | 257 | m_rc_auto_raise_delay(m_resourcemanager, 250, "autoRaiseDelay", "AutoRaiseDelay"), |
258 | m_masked_window(0), | 258 | m_masked_window(0), |
259 | m_mousescreen(0), | 259 | m_mousescreen(0), |
260 | m_keyscreen(0), | 260 | m_keyscreen(0), |
@@ -399,8 +399,8 @@ Fluxbox::Fluxbox(int argc, char **argv, | |||
399 | for (size_t s = 0; s < screens.size(); s++) { | 399 | for (size_t s = 0; s < screens.size(); s++) { |
400 | std::string sc_nr = FbTk::StringUtil::number2String(screens[s]); | 400 | std::string sc_nr = FbTk::StringUtil::number2String(screens[s]); |
401 | BScreen *screen = new BScreen(m_screen_rm.lock(), | 401 | BScreen *screen = new BScreen(m_screen_rm.lock(), |
402 | std::string("session.screen") + sc_nr, | 402 | std::string("screen") + sc_nr, |
403 | std::string("session.Screen") + sc_nr, | 403 | std::string("Screen") + sc_nr, |
404 | screens[s], ::ResourceLayer::NUM_LAYERS); | 404 | screens[s], ::ResourceLayer::NUM_LAYERS); |
405 | 405 | ||
406 | // already handled | 406 | // already handled |
@@ -1147,7 +1147,7 @@ void Fluxbox::save_rc() { | |||
1147 | for (; it != it_end; ++it) { | 1147 | for (; it != it_end; ++it) { |
1148 | BScreen *screen = *it; | 1148 | BScreen *screen = *it; |
1149 | 1149 | ||
1150 | std::string workspaces_string("session.screen"); | 1150 | std::string workspaces_string("screen"); |
1151 | workspaces_string += FbTk::StringUtil::number2String(screen->screenNumber()); | 1151 | workspaces_string += FbTk::StringUtil::number2String(screen->screenNumber()); |
1152 | workspaces_string += ".workspaceNames: "; | 1152 | workspaces_string += ".workspaceNames: "; |
1153 | 1153 | ||
@@ -1240,10 +1240,10 @@ void Fluxbox::load_rc(BScreen &screen) { | |||
1240 | 1240 | ||
1241 | std::string screen_number = FbTk::StringUtil::number2String(screen.screenNumber()); | 1241 | std::string screen_number = FbTk::StringUtil::number2String(screen.screenNumber()); |
1242 | 1242 | ||
1243 | std::string name_lookup("session.screen"); | 1243 | std::string name_lookup("screen"); |
1244 | name_lookup += screen_number; | 1244 | name_lookup += screen_number; |
1245 | name_lookup += ".workspaceNames"; | 1245 | name_lookup += ".workspaceNames"; |
1246 | std::string class_lookup("session.screen"); | 1246 | std::string class_lookup("screen"); |
1247 | class_lookup += screen_number; | 1247 | class_lookup += screen_number; |
1248 | class_lookup += ".WorkspaceNames"; | 1248 | class_lookup += ".WorkspaceNames"; |
1249 | 1249 | ||