From ac429ff854dbad53ee52723a2b9cc4ae9ede189a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 31 May 2007 04:50:52 +0000 Subject: [PATCH] preview fixes from syscrash --- src/preview.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/preview.c b/src/preview.c index 1ebcf44..663b5a9 100644 --- a/src/preview.c +++ b/src/preview.c @@ -286,6 +286,7 @@ static GdkPixbuf* preview_window(RrTheme *theme, const gchar *titlelayout, a->texture[0].type = RR_TEXTURE_RGBA; a->texture[0].data.rgba.width = 48; a->texture[0].data.rgba.height = 48; + a->texture[0].data.rgba.alpha = 0xff; a->texture[0].data.rgba.data = theme->def_win_icon; a->surface.parent = title; @@ -488,6 +489,9 @@ GdkPixbuf *preview_theme(const gchar *name, const gchar *titlelayout, w = MAX(window_w, menu_w) + 20; + /* we don't want windows disappearing on us */ + if (!window_w) window_w = menu_w; + preview = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, w, h + 2*(theme->title_height +5) + 1); gdk_pixbuf_fill(preview, 0); /* clear */ -- 2.34.1