wayland: Fix gdk_window_wayland_resize_cairo_surface()

Like in other backends (except X) we can't resize cairo image surfaces
so let's sync the code here with what the other backends do.

This prevents the painting machinery above us to paint on the wrong
buffer.

https://bugzilla.gnome.org/show_bug.cgi?id=724968
This commit is contained in:
Rui Matos 2014-02-22 19:10:59 +01:00 committed by Benjamin Otte
parent a3518a4d66
commit 6ea4bf8a9d

View File

@ -1487,7 +1487,10 @@ gdk_window_wayland_resize_cairo_surface (GdkWindow *window,
gint width,
gint height)
{
return surface;
/* cairo image surfaces cannot be resized */
cairo_surface_destroy (surface);
return NULL;
}
static cairo_region_t *