disable opacity properly (max guint16, not min)

This commit is contained in:
Daniel Micay 2012-09-25 04:53:26 -04:00
parent 6fb58f5688
commit 6d82e500d2
1 changed files with 1 additions and 1 deletions

View File

@ -905,7 +905,7 @@ static void load_config(GtkWindow *window, VteTerminal *vte, config_info *info,
vte_terminal_set_opacity(vte, (guint16)(0xffff * (1 - cfgdouble)));
} else {
visual = gdk_screen_get_system_visual(screen);
vte_terminal_set_opacity(vte, 0);
vte_terminal_set_opacity(vte, G_MAXUINT16);
}
if (visual != gtk_widget_get_visual(GTK_WIDGET(window))) {
gtk_widget_set_visual(GTK_WIDGET(window), visual);