[gtk+/rendering-cleanup: 10/41] x11: Get display from window, not from impl-drawable's screen
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 10/41] x11: Get display from window, not from impl-drawable's screen
- Date: Tue, 23 Nov 2010 00:22:25 +0000 (UTC)
commit 0e7a8f260e8e07b3a53fb183dc6a3dfd93e693ba
Author: Benjamin Otte <otte redhat com>
Date: Wed Oct 6 01:59:21 2010 +0200
x11: Get display from window, not from impl-drawable's screen
gdk/x11/gdkdrawable-x11.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkdrawable-x11.c b/gdk/x11/gdkdrawable-x11.c
index f00706b..73dbcd3 100644
--- a/gdk/x11/gdkdrawable-x11.c
+++ b/gdk/x11/gdkdrawable-x11.c
@@ -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),
impl->xid,
GDK_VISUAL_XVISUAL (visual),
width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]