Commit cfa67127 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

x11: Get display from window, not from impl-drawable's screen

parent dc7d8dae
......@@ -122,7 +122,7 @@ gdk_x11_create_cairo_surface (GdkDrawable *drawable,
GdkVisual *visual;
visual = gdk_window_get_visual (impl->wrapper);
return cairo_xlib_surface_create (GDK_SCREEN_XDISPLAY (impl->screen),
return cairo_xlib_surface_create (GDK_WINDOW_XDISPLAY (impl->wrapper),
width, height);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment