diff options
author | 2018-11-30 16:16:17 +0900 | |
---|---|---|
committer | 2018-11-30 16:16:17 +0900 | |
commit | ae68306fd69e4360e2b96333d0ec34a08d50400d (patch) | |
tree | fbaa6010dbe8426f059275032191270ce94705dd | |
parent | c9758737aac76866a6f549d47d9059558a5d9685 (diff) |
use area info
-rw-r--r-- | app/main.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/main.cpp b/app/main.cpp index 8227411..aff9999 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -112,7 +112,14 @@ int main(int argc, char* argv[]) { hs->set_event_handler( LibHomeScreen::Event_TapShortcut, [qwm, role](json_object* object) { qDebug("Surface Video got tapShortcut\n"); - qwm->activateSurface(role); + 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)) { + qwm->activateWindow(role, json_object_get_string(obj_area)); + } + else { + qwm->activateWindow(role, "normal"); + } }); // Set the event handler for Event_Restriction which will allocate or |