--- terminal/terminal-app.c.orig 2007-01-24 21:59:12.000000000 +0100 +++ terminal/terminal-app.c 2007-01-24 22:07:41.000000000 +0100 @@ -411,21 +411,24 @@ #if GTK_CHECK_VERSION(2,10,0) /* check if we already checked this screen */ - if (g_object_get_data (G_OBJECT (screen), "terminal-checked-screen") == NULL) + if (gdk_screen_is_composited(screen)) { - /* check if we can use ARGB visual for this screen */ - colormap = gdk_screen_get_rgba_colormap (screen); - if (G_LIKELY (colormap != NULL)) + if (g_object_get_data (G_OBJECT (screen), "terminal-checked-screen") == NULL) { - /* use ARGB visual for all windows on this screen, required - * for real transparency with a compositing manager. - */ - gdk_screen_set_default_colormap (screen, colormap); - } + /* check if we can use ARGB visual for this screen */ + colormap = gdk_screen_get_rgba_colormap (screen); + if (G_LIKELY (colormap != NULL)) + { + /* use ARGB visual for all windows on this screen, required + * for real transparency with a compositing manager. + */ + gdk_screen_set_default_colormap (screen, colormap); + } - /* mark this screen as handled */ - g_object_set_data (G_OBJECT (screen), "terminal-checked-screen", GINT_TO_POINTER (1)); - } + /* mark this screen as handled */ + g_object_set_data (G_OBJECT (screen), "terminal-checked-screen", GINT_TO_POINTER (1)); + } + } #endif return screen;