hi, I made a small a patch for gtk-window-decorator which define default border alpha to zero when it use metacity theme. That allows while playing with the alpha attributes of the metacity themes to have transparent borders. here too the modified “Human Ubuntu” theme and a screenshot to show the result.
ps: sorry for my bad english
--- compiz.orig/gtk/window-decorator/gtk-window-decorator.c 2006-09-30 12:34:36.000000000 +0200
+++ compiz/gtk/window-decorator/gtk-window-decorator.c 2006-10-01 18:45:08.000000000 +0200
@@ -2117,7 +2121,7 @@
region = meta_get_window_region (&fgeom, clip.width, clip.height);
- gdk_cairo_set_source_color (cr, &style->bg[GTK_STATE_NORMAL]);
+ gdk_cairo_set_source_color_alpha (cr, &style->bg[GTK_STATE_NORMAL], 0.0f);
for (i = 0; i < region->numRects; i++)
{
@@ -2497,6 +2501,7 @@
GdkPixmap *pixmap;
GdkVisual *visual;
GdkColormap *colormap;
+ GdkScreen * screen;
visual = gdk_visual_get_best_with_depth (32);
if (!visual)
@@ -2506,15 +2511,13 @@
if (!pixmap)
return NULL;
- colormap = gdk_colormap_new (visual, FALSE);
+ screen = gdk_visual_get_screen(visual);
+
+ colormap = gdk_screen_get_rgba_colormap(screen);
if (!colormap)
- {
- gdk_pixmap_unref (pixmap);
- return NULL;
- }
+ colormap = gdk_screen_get_rgb_colormap(screen);
gdk_drawable_set_colormap (GDK_DRAWABLE (pixmap), colormap);
- gdk_colormap_unref (colormap);
return pixmap;
}
HumanAlpha.tar.bz2
Description: application/bzip-compressed-tar
screenshot1.png
Description: PNG image
_______________________________________________ compiz mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/compiz
