Window Manager set role name as lower_case,
then change role as lower_case.
Change-Id: Iee62ff0832bef3b70adf76698efbf7168fd5af69
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
int port = 1700;
QString token = "wm";
int port = 1700;
QString token = "wm";
+ QString graphic_role = "homescreen"; // defined in layers.json in Window Manager
if (positionalArguments.length() == 2) {
port = positionalArguments.takeFirst().toInt();
if (positionalArguments.length() == 2) {
port = positionalArguments.takeFirst().toInt();
AGLScreenInfo screenInfo(layoutHandler->get_scale_factor());
AGLScreenInfo screenInfo(layoutHandler->get_scale_factor());
- if (layoutHandler->requestSurface(QString("HomeScreen")) != 0) {
+ if (layoutHandler->requestSurface(graphic_role) != 0) {
- layoutHandler->set_event_handler(QLibWindowmanager::Event_SyncDraw, [layoutHandler](json_object *object) {
- layoutHandler->endDraw(QString("HomeScreen"));
+ layoutHandler->set_event_handler(QLibWindowmanager::Event_SyncDraw, [layoutHandler, &graphic_role](json_object *object) {
+ layoutHandler->endDraw(graphic_role);
});
layoutHandler->set_event_handler(QLibWindowmanager::Event_ScreenUpdated, [layoutHandler, launcher](json_object *object) {
});
layoutHandler->set_event_handler(QLibWindowmanager::Event_ScreenUpdated, [layoutHandler, launcher](json_object *object) {