~mir-team/qtmir/compatibility-with-mir-API-changes

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/application.cpp

  • Committer: CI bot
  • Author(s): Michael Zanetti
  • Date: 2014-10-06 11:59:39 UTC
  • mfrom: (243.3.12 qtmir-lifecycle-fixes)
  • Revision ID: ps-jenkins@lists.canonical.com-20141006115939-zrgf2tgrysuq6lym
Fix some bugs in app lifecycle management.

* Correctly determine PID of apps not started by UAL
* Delayed suspending of apps if the first suspending failed because of them being in Starting phase still Fixes: 1326906, 1339883, 1343259
Approved by: Albert Astals Cid

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
void Application::onSessionSuspended()
326
326
{
327
327
    qCDebug(QTMIR_APPLICATIONS) << "Application::onSessionSuspended - appId=" << appId();
328
 
    m_taskController->suspend(longAppId());
 
328
    m_taskController->suspend(this);
329
329
}
330
330
 
331
331
void Application::onSessionResumed()
332
332
{
333
333
    qCDebug(QTMIR_APPLICATIONS) << "Application::onSessionResumed - appId=" << appId();
334
 
    m_taskController->resume(longAppId());
 
334
    m_taskController->resume(this);
335
335
}
336
336
 
337
337
void Application::respawn()