From 1c08949d2a858a89cfb55e74f08a31e74f8575f3 Mon Sep 17 00:00:00 2001 From: Dustin Falgout Date: Thu, 15 Oct 2015 02:16:43 -0500 Subject: [PATCH] dont set_visual as its not necessary with opaque colors --- src/lightdm-webkit2-greeter.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lightdm-webkit2-greeter.c b/src/lightdm-webkit2-greeter.c index 37637ae..fb59523 100644 --- a/src/lightdm-webkit2-greeter.c +++ b/src/lightdm-webkit2-greeter.c @@ -143,15 +143,6 @@ main(int argc, char **argv) { gdk_rgba_parse(&bg_color, "#000000"); - - if (bg_color.alpha < 1) { - GdkVisual *rgba_visual = gdk_screen_get_rgba_visual(screen); - - if (rgba_visual) { - gtk_widget_set_visual(GTK_WIDGET(window), rgba_visual); - gtk_widget_set_app_paintable(GTK_WIDGET(window), TRUE); - } - } webkit_web_view_set_background_color(WEBKIT_WEB_VIEW(web_view), gdk_rgba_copy(&bg_color));