diff -u '--exclude=*~' slim-1.3.4-old/cfg.cpp slim-1.3.4/cfg.cpp --- slim-1.3.4-old/cfg.cpp 2012-11-24 17:53:49.179590975 -0800 +++ slim-1.3.4/cfg.cpp 2012-11-24 17:31:05.142147776 -0800 @@ -302,6 +302,11 @@ } } +string Cfg::defaultSession() { + 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/cfg.h --- slim-1.3.4-old/cfg.h 2012-11-24 17:53:49.176257688 -0800 +++ slim-1.3.4/cfg.h 2012-11-24 17:31:53.394789655 -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/panel.cpp --- slim-1.3.4-old/panel.cpp 2012-11-24 17:53:49.172924401 -0800 +++ slim-1.3.4/panel.cpp 2012-11-24 17:34:08.826188094 -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);