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
This commit is contained in:
Benjamin Otte 2010-07-19 13:15:10 +02:00
parent fafc457a01
commit e1c7ff8ee0

View File

@ -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);