desk->ss_region_resources = eina_list_append(
desk->ss_region_resources, ss_region_res);
- // send the splitscreen_region sresources
- wtz_splitscreen_send_region(ss_res,
- ss_region_res, edg->name,
- edg->x, edg->y, edg->w, edg->h);
+ // send the splitscreen_region resources
+ wtz_splitscreen_send_region(ss_res, ss_region_res);
+
+ // send the name of the split_screen_region
+ wtz_splitscreen_region_send_name(ss_region_res, edg->name);
+
+ // send the geometry of the split_screen_region
+ wtz_splitscreen_region_send_geometry(ss_region_res, edg->x, edg->y, edg->w, edg->h);
}
}
ELOGF("E_Zone", "Create a splitscreen resource. zone_id:%d", NULL, zone->id);
}
-static void
-_e_zone_screen_cb_set_client_side_decoration(struct wl_client *client,
- struct wl_resource *resource, uint32_t enable)
-{
- E_Zone *zone;
-
- if (!(zone = wl_resource_get_user_data(resource))) return;
-
- if (zone->csd_enabled != enable) zone->csd_enabled = enable;
-
- // TODO: The currunt ecs(wtz_surface) in this zone(wtz_screen) can support
- // client-side decoration. Therefore, do something(?) for them to get
- // the client-side decoration. - [soolim]
-
-}
-
static const struct wtz_screen_interface _e_zone_screen_interface =
{
_e_zone_screen_cb_destroy,
_e_zone_screen_cb_get_splitscreen,
- _e_zone_screen_cb_set_client_side_decoration,
};
static void
if (zone->splitscreen_enabled)
_e_zone_screen_capability_add(resource, &capabilities,
WTZ_SCREEN_CAPABILITY_SPLITSCREEN);
- if (zone->csd_enabled)
- _e_zone_screen_capability_add(resource, &capabilities,
- WTZ_SCREEN_CAPABILITY_CLIENT_SIDE_DECORATION);
wtz_screen_send_capabilities(resource, &capabilities);
ELOGF("E_Zone", "Bound wtz_screen zone->id: %d Size: %dx%d", NULL,
struct wl_global *global; // wtz_screen global resource
Eina_List *resources; // binding resources of wtz_screen global resource
Eina_Bool splitscreen_enabled; // splitscreen capability
- Eina_Bool csd_enabled; // client side decoration capablitiy
Eina_List *obstacles;
};