[gtk+] gdk: When reffing the impl surface, ref it from the impl window



commit 51290e0a57ec10ad966cf2e1a17b90d66eb330ea
Author: Benjamin Otte <otte redhat com>
Date:   Sun Jan 23 21:39:00 2011 +0100

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index fe24ddc..8820920 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 *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]