diff options
-rw-r--r-- | src/aglextras/aglextras.pro | 5 | ||||
-rw-r--r-- | src/aglextras/hmi/aglwmclient.cpp | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/aglextras/aglextras.pro b/src/aglextras/aglextras.pro index 24028a9..ecfe5c1 100644 --- a/src/aglextras/aglextras.pro +++ b/src/aglextras/aglextras.pro @@ -9,5 +9,8 @@ qtConfig(agl_hmi_framework) { DEFINES += USE_AGL_HMI_LOWLEVEL_API QMAKE_USE += libhomescreen libwindowmanager } - +DEFINES += USE_AGL_HMI_LOWLEVEL_API +CONFIG += link_pkgconfig +PKGCONFIG += libwindowmanager libhomescreen +LIBS += -ljson-c load(qt_module) diff --git a/src/aglextras/hmi/aglwmclient.cpp b/src/aglextras/hmi/aglwmclient.cpp index 5c79832..59518a3 100644 --- a/src/aglextras/hmi/aglwmclient.cpp +++ b/src/aglextras/hmi/aglwmclient.cpp @@ -159,7 +159,14 @@ AGLWmClient::AGLWmClient (const QString&, int port, QString) LibHomeScreen::Event_TapShortcut, [this](json_object* object) { qDebug("Surface got tapShortcut\n"); - activate_window(); + struct json_object *obj_param = nullptr, *obj_area = nullptr; + if(json_object_object_get_ex(object, "parameter", &obj_param) + && json_object_object_get_ex(obj_param, "area", &obj_area)) { + w_ptr->activateWindow(d_ptr->layout.toStdString().c_str(), json_object_get_string(obj_area)); + } + else { + w_ptr->activateWindow(d_ptr->layout.toStdString().c_str(), "normal"); + } } ); #endif // USE_AGL_HMI_LOWLEVEL_API |