clients: Add a widget_get_wl_subsurface
authorNeil Roberts <neil@linux.intel.com>
Sun, 8 Sep 2013 23:40:17 +0000 (00:40 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 5 Dec 2013 00:34:07 +0000 (16:34 -0800)
Adds a simple accessor for the wl_subsurface for widgets created with
window_add_subsurface.

clients/window.c
clients/window.h

index 096e117..43761ca 100644 (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)
 {
index 777bfbc..cf8fc6c 100644 (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,