tmp_info = malloc(sizeof(struct information));
memcpy(tmp_info, &info, sizeof(struct information));
parse_conky_vars(&subroot, text, p, p_max_size, tmp_info);
- DBGP("evaluated '%s' to '%s'", text, p);
+ DBGP2("evaluated '%s' to '%s'", text, p);
free_text_objects(&subroot, 1);
free(tmp_info);
if (output_methods & TO_X) {
#ifdef USE_ARGB
if (have_argb_visual) {
- current_color = c | (0xff << 24);
+ current_color = c | (own_window_argb_value << 24);
} else {
#endif /* USE_ARGB */
current_color = c;
draw_stuff(); /* redraw everything in our newly sized window */
XResizeWindow(display, window.window, window.width,
window.height); /* resize window */
- set_transparent_background(window.window);
+ set_transparent_background(window.window, own_window_argb_value);
#ifdef HAVE_XDBE
/* swap buffers */
xdbe_swap_buffers();
case ReparentNotify:
/* make background transparent */
if (own_window) {
- set_transparent_background(window.window);
+ set_transparent_background(window.window, own_window_argb_value);
}
break;
sprintf(window.title, PACKAGE_NAME" (%s)", info.uname_s.nodename);
#ifdef USE_ARGB
use_argb_visual = 0;
+ own_window_argb_value = 255;
#endif
#endif
stippled_borders = 0;
XMoveWindow(display, window.window, window.x, window.y);
}
if (own_window) {
- set_transparent_background(window.window);
+ set_transparent_background(window.window, own_window_argb_value);
}
#endif
CONF("own_window_argb_visual") {
use_argb_visual = string_to_bool(value);
}
+ CONF("own_window_argb_value") {
+ own_window_argb_value = strtol(value, 0, 0);
+ if (own_window_argb_value > 255 || own_window_argb_value < 0) {
+ CONF_ERR2("own_window_argb_value must be <= 255 and >= 0");
+ }
+ }
#endif /* USE_ARGB */
#endif
CONF("stippled_borders") {