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 *