static void
_e_xdg_surface_state_add(struct wl_resource *resource, struct wl_array *states, uint32_t state)
{
- uint32_t *s;
+ uint32_t *s;
s = wl_array_add(states, sizeof(*s));
- if (s)
- *s = state;
- else
- wl_resource_post_no_memory(resource);
+ if (s)
+ *s = state;
+ else
+ wl_resource_post_no_memory(resource);
}
static void
if (!ec)
{
wl_resource_post_error(resource, WL_DISPLAY_ERROR_INVALID_OBJECT,
- "No Client For Shell Surface");
+ "No Client For Shell Surface");
return;
}
EINA_RECTANGLE_SET(&ec->comp_data->shell.window, x, y, w, h);