diff -u '--exclude=*~' slim-1.3.4-old/cfg.cpp slim-1.3.4-new/cfg.cpp --- slim-1.3.4-old/cfg.cpp 2012-06-26 01:20:14.000000000 -0700 +++ slim-1.3.4-new/cfg.cpp 2012-11-25 12:52:08.699259945 -0800 @@ -302,6 +302,14 @@ } } +string Cfg::defaultSession() { + if (sessions.size() < 1) + return ""; + + currentSession = 0; + return sessions[currentSession]; +} + string Cfg::nextSession(string current) { if (sessions.size() < 1) return current; diff -u '--exclude=*~' slim-1.3.4-old/cfg.h slim-1.3.4-new/cfg.h --- slim-1.3.4-old/cfg.h 2012-06-26 01:20:14.000000000 -0700 +++ slim-1.3.4-new/cfg.h 2012-11-25 12:25:16.062847243 -0800 @@ -41,6 +41,7 @@ static std::string Trim(const std::string& s); std::string nextSession(std::string current); + std::string defaultSession(); private: void fillSessionList(); diff -u '--exclude=*~' slim-1.3.4-old/panel.cpp slim-1.3.4-new/panel.cpp --- slim-1.3.4-old/panel.cpp 2012-06-26 01:20:14.000000000 -0700 +++ slim-1.3.4-new/panel.cpp 2012-11-25 12:25:16.066180072 -0800 @@ -23,7 +23,7 @@ Root = root; cfg = config; - session = ""; + session = cfg->defaultSession(); // Init GC XGCValues gcv; @@ -186,7 +186,7 @@ } void Panel::ClearPanel() { - session = ""; + session = cfg->defaultSession(); Reset(); XClearWindow(Dpy, Root); XClearWindow(Dpy, Win);