diff options
Diffstat (limited to 'src/ui/tile-preview.c')
-rw-r--r-- | src/ui/tile-preview.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ui/tile-preview.c b/src/ui/tile-preview.c index 71b2e297..75eba055 100644 --- a/src/ui/tile-preview.c +++ b/src/ui/tile-preview.c @@ -177,8 +177,7 @@ on_preview_window_style_set (GtkWidget *widget, } MetaTilePreview * -meta_tile_preview_new (int screen_number, - gboolean composited) +meta_tile_preview_new (int screen_number) { MetaTilePreview *preview; #if !GTK_CHECK_VERSION (3, 0, 0) @@ -207,9 +206,9 @@ meta_tile_preview_new (int screen_number, preview->tile_rect.width = preview->tile_rect.height = 0; #if GTK_CHECK_VERSION (3, 0, 0) - preview->has_alpha = composited && (gdk_screen_get_rgba_visual (screen) != NULL); + preview->has_alpha = gdk_screen_is_composited (screen) && (gdk_screen_get_rgba_visual (screen) != NULL); #else - preview->has_alpha = rgba_colormap && composited; + preview->has_alpha = rgba_colormap && gdk_screen_is_composited (screen); #endif if (preview->has_alpha) |