clients: Add a widget_get_wl_subsurface

Adds a simple accessor for the wl_subsurface for widgets created with
window_add_subsurface.
dev
Neil Roberts 11 years ago committed by Kristian Høgsberg
parent 47b87d5ec0
commit 5e10a04481
  1. 6
      clients/window.c
  2. 3
      clients/window.h

@ -1818,6 +1818,12 @@ widget_get_wl_surface(struct widget *widget)
return widget->surface->surface;
}
struct wl_subsurface *
widget_get_wl_subsurface(struct widget *widget)
{
return widget->surface->subsurface;
}
uint32_t
widget_get_last_time(struct widget *widget)
{

@ -345,6 +345,9 @@ window_get_surface(struct window *window);
struct wl_surface *
window_get_wl_surface(struct window *window);
struct wl_subsurface *
widget_get_wl_subsurface(struct widget *widget);
enum window_buffer_type {
WINDOW_BUFFER_TYPE_EGL_WINDOW,
WINDOW_BUFFER_TYPE_SHM,

Loading…
Cancel
Save