summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-04-11 13:17:44 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-04-11 13:17:44 -0400
commit386857ba6a9d927f96c8dc18139577fe768055a0 (patch)
tree3d550daa1afcf1a9809cc546c035f46164cbd6e6
parentb4b67344f044518ddf6539f63fdc7ae25f0498a9 (diff)
Add struct window accessor for the wl_surface
-rw-r--r--clients/window.c6
-rw-r--r--clients/window.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/clients/window.c b/clients/window.c
index 25a5ab52..db07af3c 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -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)
{
diff --git a/clients/window.h b/clients/window.h
index f45a2818..85c9ad0b 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -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,