get XDisplay from window instead of display, as display has not been

Thu Oct  3 23:53:43 2002  Kristian Rietveld  <kris@gtk.org>

        * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_destroy): get
        XDisplay from window instead of display, as display has not been
        defined here (fixes the build).
This commit is contained in:
Kristian Rietveld
2002-10-03 21:44:31 +00:00
committed by Kristian Rietveld
parent 2729003645
commit 040d54a534
7 changed files with 37 additions and 1 deletions

View File

@ -834,7 +834,7 @@ _gdk_windowing_window_destroy (GdkWindow *window,
XftDrawDestroy (draw_impl->xft_draw);
#else /* !HAVE_XFT2 */
if (draw_impl->picture)
XRenderFreePicture (GDK_DISPLAY_XDISPLAY (display), draw_impl->picture);
XRenderFreePicture (GDK_DRAWABLE_XDISPLAY (window), draw_impl->picture);
#endif /* HAVE_XFT2 */
}
#endif /* HAVE_XFT */