Add struct window accessor for the wl_surface
authorKristian Høgsberg <krh@bitplanet.net>
Mon, 11 Apr 2011 17:17:44 +0000 (13:17 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 11 Apr 2011 17:17:44 +0000 (13:17 -0400)
clients/window.c
clients/window.h

index 25a5ab5..db07af3 100644 (file)
@@ -752,6 +752,12 @@ window_set_surface(struct window *window, cairo_surface_t *surface)
        window->cairo_surface = surface;
 }
 
+struct wl_surface *
+window_get_wl_surface(struct window *window)
+{
+       return window->surface;
+}
+
 static void
 window_resize_cairo_window_surface(struct window *window)
 {
index f45a281..85c9ad0 100644 (file)
@@ -184,6 +184,9 @@ window_set_surface(struct window *window, cairo_surface_t *surface);
 void
 window_create_surface(struct window *window);
 
+struct wl_surface *
+window_get_wl_surface(struct window *window);
+
 enum window_buffer_type {
        WINDOW_BUFFER_TYPE_EGL_WINDOW,
        WINDOW_BUFFER_TYPE_EGL_IMAGE,