From d04bb38b288d44ca6071a774e19f1d204f7a6db5 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 25 Aug 2010 23:39:30 +0200 Subject: [PATCH] gdk: offscreen window source drawable now is the root window As the source drawable is only used for creating pixmaps these days, we don't have to keep a real drawable around, but can just use the root window. --- gdk/gdkoffscreenwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c index f0f7664abc..30df772522 100644 --- a/gdk/gdkoffscreenwindow.c +++ b/gdk/gdkoffscreenwindow.c @@ -183,7 +183,7 @@ gdk_offscreen_window_get_source_drawable (GdkDrawable *drawable) { GdkOffscreenWindow *offscreen = GDK_OFFSCREEN_WINDOW (drawable); - return _gdk_drawable_get_source_drawable (offscreen->pixmap); + return gdk_screen_get_root_window (offscreen->screen); } static GdkScreen*