diff options
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/appearance/appearance-font.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c index 45bcaa35..0ae22153 100644 --- a/capplets/appearance/appearance-font.c +++ b/capplets/appearance/appearance-font.c @@ -262,7 +262,7 @@ static void setup_font_sample(GtkWidget* darea, Antialiasing antialiasing, Hinti #endif #if GTK_CHECK_VERSION (3, 0, 0) - draw = XftDrawCreate (xdisplay, GDK_WINDOW_XID (gtk_widget_get_window(darea)), xvisual, xcolormap); + draw = XftDrawCreate (xdisplay, GDK_WINDOW_XID (gdk_screen_get_root_window (gdk_screen_get_default ())), xvisual, xcolormap); #else draw = XftDrawCreate (xdisplay, GDK_DRAWABLE_XID (pixmap), xvisual, xcolormap); #endif |