if (ec->comp_data)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
+ if (cdata->wl_surface)
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &pid, NULL, NULL);
}
}
if (ec->comp_data)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
+ if (cdata->wl_surface)
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &pid, NULL, NULL);
}
}
if (ec->comp_data)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
+ if (cdata->wl_surface)
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &pid, NULL, NULL);
}
if (cinfo->pid == pid)
{
if (ec->comp_data)
{
const E_Comp_Wl_Client_Data *cdata = (const E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
+ if (cdata->wl_surface)
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &pid, NULL, NULL);
}
if (asprintf(&str, "%d", pid) < 0)
if (ec->comp_data)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
+ if (cdata->wl_surface)
{
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &pid, NULL, NULL);
}
}
if (pid == value_number)
if (ec->comp_data)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
+ if (cdata->wl_surface)
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &pid, NULL, NULL);
}
}
if (pid != *(pid_t *)value)
if (ec->comp_data)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &ec_pid, NULL, NULL);
+ if (cdata->wl_surface)
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &ec_pid, NULL, NULL);
}
}
if (ec_pid != pid)
if (ec->comp_data)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
+ if (cdata->wl_surface)
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &pid, NULL, NULL);
}
}
if (ec->comp_data)
{
E_Comp_Wl_Client_Data *cdata = (E_Comp_Wl_Client_Data*)ec->comp_data;
- if (cdata->surface)
- wl_client_get_credentials(wl_resource_get_client(cdata->surface), &pid, NULL, NULL);
+ if (cdata->wl_surface)
+ wl_client_get_credentials(wl_resource_get_client(cdata->wl_surface), &pid, NULL, NULL);
}
}
_e_comp_wl_client_buffer_set(ec, state->buffer);
/* emit a apply_viewport signal when the information of viewport and buffer is ready */
- wl_signal_emit(&cdata->apply_viewport_signal, &cdata->surface);
+ wl_signal_emit(&cdata->apply_viewport_signal, &cdata->wl_surface);
_e_comp_wl_surface_state_buffer_set(state, NULL);
e_comp_wl_subsurface_check_alpha_mask_rect(ec);
- wl_signal_emit(&cdata->state_commit_signal, &cdata->surface);
+ wl_signal_emit(&cdata->state_commit_signal, &cdata->wl_surface);
buffer = e_surface_buffer_try_get(surface);
if ((buffer) && (e_policy_client_buffer_flush_enabled_get(ec)))
EINA_SAFETY_ON_NULL_RETURN_VAL(ec->comp_data, NULL);
g_mutex_lock(&ec->comp_data->surface_mutex);
- surface = ec->comp_data->surface;
+ surface = ec->comp_data->wl_surface;
g_mutex_unlock(&ec->comp_data->surface_mutex);
return surface;
EINA_SAFETY_ON_NULL_RETURN(ec->comp_data);
g_mutex_lock(&ec->comp_data->surface_mutex);
- ec->comp_data->surface = surface;
ec->comp_data->wl_surface = surface;
g_mutex_unlock(&ec->comp_data->surface_mutex);
state->sy = 0;
state->new_attach = EINA_FALSE;
- wl_signal_emit(&cdata->state_commit_signal, &cdata->surface);
+ wl_signal_emit(&cdata->state_commit_signal, &cdata->wl_surface);
/* send remote buffer to remote surfaces */
buffer = e_pixmap_resource_get(ec->pixmap);
{
g_mutex_lock(&base->surface_mutex);
- wl_signal_emit(&base->destroy_signal, &base->surface);
+ wl_signal_emit(&base->destroy_signal, &base->wl_surface);
e_comp_wl_surface_state_finish(&base->pending);
}
}
- if (e_comp_wl_get()->selection.cbhm == base->surface)
+ if (e_comp_wl_get()->selection.cbhm == base->wl_surface)
e_comp_wl_get()->selection.cbhm = NULL;
e_presentation_time_container_finish(&base->presentation_container);
psurf->pid = ec->netwm.pid;
cdata = e_client_cdata_get(ec);
- if (wl_resource_get_client(cdata->surface) == wl_resource_get_client(res_tzpol))
- psurf->surf = cdata->surface;
+ if (wl_resource_get_client(cdata->wl_surface) == wl_resource_get_client(res_tzpol))
+ psurf->surf = cdata->wl_surface;
tzpol->psurfs = eina_list_append(tzpol->psurfs, psurf);
if (!cdata) return;
comp_wl = e_comp_wl_get();
- comp_wl->selection.cbhm = cdata->surface;
+ comp_wl->selection.cbhm = cdata->wl_surface;
}
else if (!e_util_strcmp("wl_pointer-cursor", role))
{
ELOGF("TZPOL",
" |res_tzpol:%8p|parent_surf:%8p|child_surf:%8p",
- NULL, res_tzpol, (p_cdata ? p_cdata->surface : NULL), (cdata ? cdata->surface : NULL));
+ NULL, res_tzpol, (p_cdata ? p_cdata->wl_surface : NULL), (cdata ? cdata->wl_surface : NULL));
e_policy_stack_transient_for_set(ec, parent_ec);
tizen_policy_send_transient_for_done(res_tzpol, child_id);
p_cdata = e_client_cdata_get(parent_ec);
ELOGF("TZPOL",
" |res_tzpol:%8p|parent_surf:%8p|child_surf:%8p",
- NULL, res_tzpol, (p_cdata ? p_cdata->surface : NULL), (cdata ? cdata->surface : NULL));
+ NULL, res_tzpol, (p_cdata ? p_cdata->wl_surface : NULL), (cdata ? cdata->wl_surface : NULL));
e_policy_stack_transient_for_below_set(ec, parent_ec, EINA_TRUE);
}
{
if (found) continue;
cdata = e_client_cdata_get(ec);
- if (cdata && cdata->surface)
+ if (cdata && cdata->wl_surface)
{
- _wc = wl_resource_get_client(cdata->surface);
+ _wc = wl_resource_get_client(cdata->wl_surface);
if (_wc == client)
found = ec;
}
cdata = e_client_cdata_get(ec);
tizen_clipboard_send_data_selected(tz_clipboard_client->res_tz_clipboard,
- cdata ? cdata->surface : NULL);
+ cdata ? cdata->wl_surface : NULL);
}
cdata = e_client_cdata_get(ec);
if (cdata)
- surf = cdata->surface;
+ surf = cdata->wl_surface;
else
surf = NULL;
cdata = e_client_cdata_get(ec);
comp_wl = e_comp_wl_get();
- comp_wl->selection.cbhm = cdata->surface;
+ comp_wl->selection.cbhm = cdata->wl_surface;
e_client_window_role_set(ec, "cbhm");
e_policy_conformant_part_add(ec);
serial = wl_display_next_serial(e_comp_wl_display_get());
wl_touch_send_down(_volume_wl_touch, serial, e->timestamp,
- volume_cdata->surface, 0,
+ volume_cdata->wl_surface, 0,
wl_fixed_from_int(e->canvas.x - _volume_ec->client.x),
wl_fixed_from_int(e->canvas.y - _volume_ec->client.y));
}
serial = wl_display_next_serial(e_comp_wl_display_get());
wl_touch_send_down(_volume_wl_touch, serial, e->timestamp,
- volume_cdata->surface, e->device,
+ volume_cdata->wl_surface, e->device,
wl_fixed_from_int(e->canvas.x - _volume_ec->client.x),
wl_fixed_from_int(e->canvas.y - _volume_ec->client.y));
}
if (_volume_wl_touch) goto end;
- wc = wl_resource_get_client(volume_cdata->surface);
+ wc = wl_resource_get_client(volume_cdata->wl_surface);
EINA_LIST_FOREACH(e_seat_list_get(), l, seat)
{
EINA_LIST_FOREACH(e_seat_touch_resources_get(seat), ll, res)
Eina_Bool restacking : 1;
} sub;
- /* regular surface resource (wl_compositor_create_surface) */
- struct wl_resource *surface;
+ E_DEPRECATED struct wl_resource *surface;
struct wl_signal destroy_signal;
struct wl_signal apply_viewport_signal;