gdk: When reffing the impl surface, ref it from the impl window

This was causing surfaces to be created with the wrong size and that
caused broken clipping.

https://bugzilla.gnome.org/show_bug.cgi?id=640195
This commit is contained in:
Benjamin Otte 2011-01-23 21:39:00 +01:00
parent e3774b6ff2
commit 51290e0a57

View File

@ -2677,7 +2677,7 @@ gdk_window_begin_implicit_paint (GdkWindow *window, GdkRectangle *rect)
static cairo_surface_t *
gdk_window_ref_impl_surface (GdkWindow *window)
{
return GDK_WINDOW_IMPL_GET_CLASS (window->impl)->ref_cairo_surface (window);
return GDK_WINDOW_IMPL_GET_CLASS (window->impl)->ref_cairo_surface (gdk_window_get_impl_window (window));
}
static cairo_t *