clients: Add a widget_get_wl_subsurface

Adds a simple accessor for the wl_subsurface for widgets created with
window_add_subsurface.
This commit is contained in:
Neil Roberts 2013-09-09 00:40:17 +01:00 committed by Kristian Høgsberg
parent 47b87d5ec0
commit 5e10a04481
2 changed files with 9 additions and 0 deletions

View File

@ -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)
{

View File

@ -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,