Add struct window accessor for the wl_surface

This commit is contained in:
Kristian Høgsberg 2011-04-11 13:17:44 -04:00
parent b4b67344f0
commit 386857ba6a
2 changed files with 9 additions and 0 deletions

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

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