Do not check whether -session cmd argument is passed to kwin in kdemain

This got used to check whether the session is being restored and only if
the session was not being restored the multi-head checks used to be
performed. Since 299a78772b823d28cf3c48aff696cfb978d0ae7e the multi-head
checks are no longer bound to not restoring the session which obsoletes
the remaining checks.

REVIEW: 107468
This commit is contained in:
Martin Gräßlin 2012-11-26 10:39:38 +01:00
parent b28a663f21
commit b0da055850

View file

@ -402,14 +402,6 @@ static const char description[] = I18N_NOOP("KDE window manager");
extern "C"
KDE_EXPORT int kdemain(int argc, char * argv[])
{
bool restored = false;
for (int arg = 1; arg < argc; arg++) {
if (!qstrcmp(argv[arg], "-session")) {
restored = true;
break;
}
}
#ifdef M_TRIM_THRESHOLD
// Prevent fragmentation of the heap by malloc (glibc).
//