aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/fluxbox-update_configs.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc
index 365136b..0105c18 100644
--- a/util/fluxbox-update_configs.cc
+++ b/util/fluxbox-update_configs.cc
@@ -301,6 +301,28 @@ int run_updates(int old_version, FbTk::ResourceManager &rm) {
301 new_version = 8; 301 new_version = 8;
302 } 302 }
303 303
304 if (old_version < 9) { // change format of slit placement menu
305 FbTk::Resource<string> *placement =
306 new FbTk::Resource<string>(rm, "BottomRight",
307 "session.screen0.slit.placement",
308 "Session.Screen0.Slit.Placement");
309 FbTk::Resource<string> *direction =
310 new FbTk::Resource<string>(rm, "Vertical",
311 "session.screen0.slit.direction",
312 "Session.Screen0.Slit.Direction");
313 if (strcasecmp((**direction).c_str(), "vertical") == 0) {
314 if (strcasecmp((**placement).c_str(), "BottomRight") == 0)
315 *placement = "RightBottom";
316 else if (strcasecmp((**placement).c_str(), "BottomLeft") == 0)
317 *placement = "LeftBottom";
318 else if (strcasecmp((**placement).c_str(), "TopRight") == 0)
319 *placement = "RightTop";
320 else if (strcasecmp((**placement).c_str(), "TopLeft") == 0)
321 *placement = "LeftTop";
322 }
323 new_version = 9;
324 }
325
304 return new_version; 326 return new_version;
305} 327}
306 328