From e1c7ff8ee09a708c6a4802db197d7c39f3644765 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 19 Jul 2010 13:15:10 +0200 Subject: [PATCH] x11: Query size on real drawable The X11 drawable does not have a clue about the real size of the surface. This might also be the cause for: https://bugzilla.gnome.org/show_bug.cgi?id=599574 --- gdk/x11/gdkdrawable-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c index ab98b7fcd2..4703cda9dd 100644 --- a/gdk/x11/gdkdrawable-x11.c +++ b/gdk/x11/gdkdrawable-x11.c @@ -1584,7 +1584,7 @@ gdk_x11_ref_cairo_surface (GdkDrawable *drawable) { int width, height; - gdk_drawable_get_size (drawable, &width, &height); + gdk_drawable_get_size (impl->wrapper, &width, &height); impl->cairo_surface = _gdk_windowing_create_cairo_surface (drawable, width, height);