void wlc_view_send_to_other(struct wlc_view *view, enum output_link link, struct wlc_view *other) { if (!view || other) return; wlc_output_link_view(wlc_view_get_output_ptr(other), view, link, other); }
void wlc_view_send_to(struct wlc_view *view, enum output_link link) { if (!view) return; wlc_output_link_view(wlc_view_get_output_ptr(view), view, link, NULL); }
void wlc_view_set_output_ptr(struct wlc_view *view, struct wlc_output *output) { if (!view || wlc_view_get_output_ptr(view) == output) return; wlc_output_link_view(output, view, LINK_ABOVE, NULL); }
void wlc_view_map(struct wlc_view *view) { assert(view); if (view->state.created) return; wlc_output_link_view(wlc_view_get_output_ptr(view), view, LINK_ABOVE, NULL); }
static void update(struct wlc_view *view) { assert(view); if (!memcmp(&view->pending, &view->commit, sizeof(view->commit))) return; wlc_output_schedule_repaint(wlc_view_get_output_ptr(view)); }
void wlc_view_map(struct wlc_view *view) { assert(view); if (view->state.created) return; wlc_output_link_view(wlc_view_get_output_ptr(view), view, LINK_ABOVE, NULL); configure_view(view, view->pending.edges, &view->pending.geometry); }
void wlc_view_unmap(struct wlc_view *view) { assert(view); wlc_output_unlink_view(wlc_view_get_output_ptr(view), view); if (!view->state.created) return; WLC_INTERFACE_EMIT(view.destroyed, convert_to_wlc_handle(view)); view->state.created = false; }
WLC_API wlc_handle wlc_view_get_output(wlc_handle view) { return convert_to_wlc_handle(wlc_view_get_output_ptr(convert_from_wlc_handle(view, "view"))); }