}
int display_event_callback(sd_event_source *evs, int /*fd*/, uint32_t events,
}
int display_event_callback(sd_event_source *evs, int /*fd*/, uint32_t events,
}
HMI_DEBUG("wm", "remove app %s", ctxt->name.c_str());
// Lookup surfaceID and remove it because App is dead.
}
HMI_DEBUG("wm", "remove app %s", ctxt->name.c_str());
// Lookup surfaceID and remove it because App is dead.
- g_afb_instance->app.id_alloc.remove_id(sid);
- g_afb_instance->app.layers.remove_surface(sid);
- g_afb_instance->app.controller->sprops.erase(sid);
- g_afb_instance->app.controller->surfaces.erase(sid);
+ 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);
+ g_afb_instance->wmgr.controller->surfaces.erase(sid);
afb_req_get_application_id(req),
a_drawing_name, a_drawing_area,
[&req](const char *errmsg) {
afb_req_get_application_id(req),
a_drawing_name, a_drawing_area,
[&req](const char *errmsg) {
catch (std::exception &e)
{
HMI_WARNING("wm", "failed: Uncaught exception while calling activatesurface: %s", e.what());
catch (std::exception &e)
{
HMI_WARNING("wm", "failed: Uncaught exception while calling activatesurface: %s", e.what());
afb_req_get_application_id(req), a_drawing_name,
[&req](const char *errmsg) {
if (errmsg != nullptr)
afb_req_get_application_id(req), a_drawing_name,
[&req](const char *errmsg) {
if (errmsg != nullptr)
catch (std::exception &e)
{
HMI_WARNING("wm", "failed: Uncaught exception while calling deactivatesurface: %s", e.what());
catch (std::exception &e)
{
HMI_WARNING("wm", "failed: Uncaught exception while calling deactivatesurface: %s", e.what());
afb_req_get_application_id(req), a_drawing_name);
}
catch (std::exception &e)
{
HMI_WARNING("wm", "failed: Uncaught exception while calling enddraw: %s", e.what());
afb_req_get_application_id(req), a_drawing_name);
}
catch (std::exception &e)
{
HMI_WARNING("wm", "failed: Uncaught exception while calling enddraw: %s", e.what());
- const char *event_name = g_afb_instance->app.kListEventName[event_type];
- struct afb_event event = g_afb_instance->app.map_afb_event[event_name];
+ const char *event_name = g_afb_instance->wmgr.kListEventName[event_type];
+ struct afb_event event = g_afb_instance->wmgr.map_afb_event[event_name];
json_object *jr = json_object_new_object();
json_object_object_add(jr, "surfaces",
json_object *jr = json_object_new_object();
json_object_object_add(jr, "surfaces",
- to_json(g_afb_instance->app.controller->sprops));
- json_object_object_add(jr, "layers", to_json(g_afb_instance->app.controller->lprops));
+ to_json(g_afb_instance->wmgr.controller->sprops));
+ json_object_object_add(jr, "layers", to_json(g_afb_instance->wmgr.controller->lprops));
const struct afb_verb_v2 windowmanager_verbs[] = {
{"requestsurface", windowmanager_requestsurface, nullptr, nullptr, AFB_SESSION_NONE},
{"requestsurfacexdg", windowmanager_requestsurfacexdg, nullptr, nullptr, AFB_SESSION_NONE},
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},
{"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},