Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
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);
}
Exemplo n.º 3
0
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);
}
Exemplo n.º 4
0
Arquivo: view.c Projeto: snells/wlc
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);
}
Exemplo n.º 5
0
Arquivo: view.c Projeto: snells/wlc
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));
}
Exemplo n.º 6
0
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);
}
Exemplo n.º 7
0
Arquivo: view.c Projeto: snells/wlc
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;
}
Exemplo n.º 8
0
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")));
}