From 51290e0a57ec10ad966cf2e1a17b90d66eb330ea Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 23 Jan 2011 21:39:00 +0100 Subject: [PATCH] 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 --- gdk/gdkwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c index fe24ddcba4..8820920cb6 100644 --- a/gdk/gdkwindow.c +++ b/gdk/gdkwindow.c @@ -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 *