This breaks start/terminate/stop cycle when moving windows to another
output. Due to the way that dynamic movement of windows takes place we
also need to handle termination.
This was an oversight from when adding gRPC proxy.
Fixes:
5d6e250cf1175ede ("AglShellGrpcClient: Activate windows with gRPC")
Bugt-AGL: SPEC-5049
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ic19a13fce155e706fb1f9e9dac798667a592a48a
homescreenHandler->pending_app_list.push_back(new_pending_app);
if (homescreenHandler->apps_stack.contains(QString(app_id))) {
homescreenHandler->pending_app_list.push_back(new_pending_app);
if (homescreenHandler->apps_stack.contains(QString(app_id))) {
- qDebug() << "Gove event to move " << app_id <<
+ qDebug() << "Got event to move " << app_id <<
" to another output " << output_name;
" to another output " << output_name;
homescreenHandler->processAppStatusEvent(app_id, "started");
}
}
homescreenHandler->processAppStatusEvent(app_id, "started");
}
}
break;
case AGL_SHELL_APP_STATE_TERMINATED:
qDebug() << "Got AGL_SHELL_APP_STATE_TERMINATED for app_id " << app_id;
break;
case AGL_SHELL_APP_STATE_TERMINATED:
qDebug() << "Got AGL_SHELL_APP_STATE_TERMINATED for app_id " << app_id;
- // handled by HomescreenHandler::processAppStatusEvent
+ homescreenHandler->processAppStatusEvent(app_id, "terminated");
break;
case AGL_SHELL_APP_STATE_ACTIVATED:
qDebug() << "Got AGL_SHELL_APP_STATE_ACTIVATED for app_id " << app_id;
break;
case AGL_SHELL_APP_STATE_ACTIVATED:
qDebug() << "Got AGL_SHELL_APP_STATE_ACTIVATED for app_id " << app_id;