[gtk+/rendering-cleanup: 11/41] x11: Get display from window, not from impl-drawable's screen



commit fa68f49690c6ad8d5d66b012a468b8951af256cc
Author: Benjamin Otte <otte redhat com>
Date:   Wed Oct 6 02:00:16 2010 +0200

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

 gdk/x11/gdkwindow-x11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index e062a18..6c9ef1c 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -5467,7 +5467,7 @@ _gdk_windowing_window_set_composited (GdkWindow *window,
 
   impl = GDK_WINDOW_IMPL_X11 (private->impl);
 
-  display = gdk_screen_get_display (GDK_DRAWABLE_IMPL_X11 (impl)->screen);
+  display = gdk_window_get_display (window);
   dpy = GDK_DISPLAY_XDISPLAY (display);
   xid = GDK_WINDOW_XWINDOW (private);
 



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