#ifdef USE_ARGB
int use_argb_visual;
+int own_window_argb_value;
int have_argb_visual;
#endif /* USE_ARGB */
/* if no argb visual is configured sets background to ParentRelative for the Window and all parents,
else real transparency is used */
-void set_transparent_background(Window win)
+void set_transparent_background(Window win, int alpha)
{
static int colour_set = -1;
+ (void)alpha; /* disable warnings when unused */
#ifdef USE_ARGB
if (have_argb_visual) {
XSetWindowBackground(display, win, 0x00);
} else if (colour_set != background_colour) {
XSetWindowBackground(display, win,
- background_colour | (0xff << 24));
+ background_colour | (alpha << 24));
colour_set = background_colour;
}
} else {
visual_list[i].blue_mask == 0x0000ff)) {
*visual = visual_list[i].visual;
*depth = visual_list[i].depth;
+ DBGP("Found ARGB Visual");
return 1;
}
}
// no argb visual available
+ DBGP("No ARGB Visual found");
return 0;
}
#endif /* USE_ARGB */