// This protocol needs the output, so lets just add our mapping here...
this->controller->add_proxy_to_id_mapping(
- this->outputs.back()->proxy.get(),
+ this->outputs.front()->proxy.get(),
wl_proxy_get_id(reinterpret_cast<struct wl_proxy *>(
- this->outputs.back()->proxy.get())));
+ this->outputs.front()->proxy.get())));
// Create screen
- this->controller->create_screen(this->outputs.back()->proxy.get());
+ this->controller->create_screen(this->outputs.front()->proxy.get());
// Set display to controller
this->controller->display = this->display;
}
auto client = g_app_list.lookUpClient(id);
- unsigned srfc = client->surfaceID(role);
+ unsigned srfc = client->surfaceID();
if(srfc == 0)
{
HMI_ERROR("wm", "role sould be set with surface");
reply("role sould be set with surface");
return;
}
- g_app_list.removeFloatingSurface(client->surfaceID(role));
+ g_app_list.removeFloatingSurface(client->surfaceID());
Task task = Task::TASK_ALLOCATE;
unsigned req_num = 0;
*/
void WindowManager::surface_created(uint32_t surface_id)
{
- // For set role function
- HMI_DEBUG("wm", "Get surface's owner");
this->controller->get_surface_properties(surface_id, IVI_WM_PARAM_SIZE);
auto layer_id = this->layers.get_layer_id(surface_id);
if (g_app_list.contains(x.appid))
{
auto client = g_app_list.lookUpClient(x.appid);
- this->deactivate(client->surfaceID(x.role));
+ this->deactivate(client->surfaceID());
}
}
ret = NO_LAYOUT_CHANGE;
return WMError::SUCCESS;
}
auto client = g_app_list.lookUpClient(action.appid);
- unsigned surface = client->surfaceID(action.role);
+ unsigned surface = client->surfaceID();
if (surface == 0)
{
HMI_SEQ_ERROR(g_app_list.currentRequestNumber(),
return WMError::NOT_REGISTERED;
}
auto client = g_app_list.lookUpClient(action.appid);
- unsigned surface = client->surfaceID(action.role);
+ unsigned surface = client->surfaceID();
if(surface == 0)
{
HMI_SEQ_ERROR(g_app_list.currentRequestNumber(),
return WMError::NOT_REGISTERED;
}
auto client = g_app_list.lookUpClient(action.appid);
- auto pCurState = *this->layers.get_layout_state((int)client->surfaceID(action.role));
+ auto pCurState = *this->layers.get_layout_state((int)client->surfaceID());
if(pCurState == nullptr)
{
HMI_SEQ_ERROR(req_num, "Counldn't find current status");
for (const auto &action : actions)
{
auto client = g_app_list.lookUpClient(action.appid);
- auto pLayerCurState = *this->layers.get_layout_state((int)client->surfaceID(action.role));
+ auto pLayerCurState = *this->layers.get_layout_state((int)client->surfaceID());
if (pLayerCurState == nullptr)
{
HMI_SEQ_ERROR(req_num, "Counldn't find current status");
if (action.visible != TaskVisible::INVISIBLE)
{
- surface = (int)client->surfaceID(action.role);
+ surface = (int)client->surfaceID();
HMI_SEQ_INFO(req_num, "Change %s surface : %d, state visible area : %s",
action.role.c_str(), surface, action.area.c_str());
// visible == true -> layout changes