diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/main.cpp b/src/main.cpp index 84c932f..b0c9415 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -223,7 +223,6 @@ void windowmanager_setrole(afb_req req) noexcept } try { - unsigned pid = 0; char const *appid = afb_req_get_application_id(req); json_object *jreq = afb_req_json(req); @@ -235,15 +234,7 @@ void windowmanager_setrole(afb_req req) noexcept } char const *a_role = json_object_get_string(j_role); - json_object *j_pid = nullptr; - if (json_object_object_get_ex(jreq, "pid", &j_pid)) - { - HMI_DEBUG("PID is set"); - char const *a_pid = json_object_get_string(j_pid); - pid = std::stol(a_pid); - } - - auto ret = g_afb_instance->wmgr.api_set_role(appid, a_role, pid); + auto ret = g_afb_instance->wmgr.api_set_role(appid, a_role); if (!ret) { afb_req_fail(req, "failed", "Couldn't register"); |