[gtk+] 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+] x11: Get display from window, not from impl-drawable's screen
- Date: Thu, 2 Dec 2010 19:53:25 +0000 (UTC)
commit cfa67127a1a5539e6a34171c7a3b7e125c146734
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]