make transparency double check a bit more robust
This commit is contained in:
parent
a7458fba67
commit
dfec1ef085
|
@ -916,7 +916,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info,
|
|||
GdkScreen *screen = gtk_widget_get_screen(GTK_WIDGET(window));
|
||||
GdkVisual *visual;
|
||||
|
||||
if (cfgdouble && !cfgbool && (visual = gdk_screen_get_rgba_visual(screen))) {
|
||||
if (cfgdouble > 0.0 && !cfgbool && (visual = gdk_screen_get_rgba_visual(screen))) {
|
||||
vte_terminal_set_opacity(vte, (guint16)(0xffff * (1 - cfgdouble)));
|
||||
} else {
|
||||
visual = gdk_screen_get_system_visual(screen);
|
||||
|
|
Loading…
Reference in New Issue