Session: Fix startup sequence

pull/21/head
reionwong 4 years ago
parent 4eeb7f4212
commit 2346ed70af

@ -49,6 +49,9 @@ void DimDisplayAction::onWakeupFromIdle()
return;
}
if (m_oldScreenBrightness < 0)
m_oldScreenBrightness = 1;
// An active inhibition may not let us restore the brightness.
// We should wait a bit screen to wake-up from sleep
QTimer::singleShot(0, this, [this]() {

@ -63,8 +63,6 @@ void ProcessManager::start()
{
startWindowManager();
startDaemonProcess();
QTimer::singleShot(100, this, &ProcessManager::loadAutoStartProcess);
}
void ProcessManager::logout()
@ -152,6 +150,9 @@ void ProcessManager::startDesktopProcess()
process->deleteLater();
}
}
// Auto start
QTimer::singleShot(100, this, &ProcessManager::loadAutoStartProcess);
}
void ProcessManager::startDaemonProcess()

Loading…
Cancel
Save