X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain.cpp;h=e982337f0e0b690d652743dc3cca05a856090e54;hb=e4222ca8da3b02afca5625fa2cef6832aa8ce90e;hp=201fbcf28244b705e34c160e7a4a13360cc7dec3;hpb=0f058700e7a34d75ae929088a31055b7efd0e456;p=apps%2Fagl-service-windowmanager.git diff --git a/src/main.cpp b/src/main.cpp index 201fbcf..e982337 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -195,18 +195,6 @@ static void cbRemoveClientCtxt(void *data) if (pSid) { auto sid = *pSid; - auto o_state = *g_afb_instance->wmgr.layers.get_layout_state(sid); - if (o_state != nullptr) - { - if (o_state->main == sid) - { - o_state->main = -1; - } - else if (o_state->sub == sid) - { - o_state->sub = -1; - } - } g_afb_instance->wmgr.id_alloc.remove_id(sid); g_afb_instance->wmgr.layers.remove_surface(sid); g_afb_instance->wmgr.controller->sprops.erase(sid); @@ -331,7 +319,7 @@ void windowmanager_requestsurfacexdg(afb_req req) noexcept } } -void windowmanager_activatesurface(afb_req req) noexcept +void windowmanager_activatewindow(afb_req req) noexcept { std::lock_guard guard(binding_m); #ifdef ST @@ -380,7 +368,7 @@ void windowmanager_activatesurface(afb_req req) noexcept } } -void windowmanager_deactivatesurface(afb_req req) noexcept +void windowmanager_deactivatewindow(afb_req req) noexcept { std::lock_guard guard(binding_m); #ifdef ST @@ -739,8 +727,8 @@ void windowmanager_debug_terminate(afb_req req) noexcept const struct afb_verb_v2 windowmanager_verbs[] = { {"requestsurface", windowmanager_requestsurface, nullptr, nullptr, AFB_SESSION_NONE}, {"requestsurfacexdg", windowmanager_requestsurfacexdg, nullptr, nullptr, AFB_SESSION_NONE}, - {"activatesurface", windowmanager_activatesurface, nullptr, nullptr, AFB_SESSION_NONE}, - {"deactivatesurface", windowmanager_deactivatesurface, nullptr, nullptr, AFB_SESSION_NONE}, + {"activatewindow", windowmanager_activatewindow, nullptr, nullptr, AFB_SESSION_NONE}, + {"deactivatewindow", windowmanager_deactivatewindow, nullptr, nullptr, AFB_SESSION_NONE}, {"enddraw", windowmanager_enddraw, nullptr, nullptr, AFB_SESSION_NONE}, {"getdisplayinfo", windowmanager_getdisplayinfo_thunk, nullptr, nullptr, AFB_SESSION_NONE}, {"getareainfo", windowmanager_getareainfo_thunk, nullptr, nullptr, AFB_SESSION_NONE},