diff --git a/src/conky.c b/src/conky.c index ec7fefa8..0d13d137 100644 --- a/src/conky.c +++ b/src/conky.c @@ -1173,9 +1173,6 @@ void generate_text_internal(char *p, int p_max_size, OBJ(nodename) { snprintf(p, p_max_size, "%s", cur->uname_s.nodename); } - OBJ(outlinecolor) { - new_outline(obj, p, p_max_size); - } OBJ(pid_chroot) { char buf[max_user_text]; diff --git a/src/core.c b/src/core.c index f66a9308..e485e2c0 100644 --- a/src/core.c +++ b/src/core.c @@ -925,6 +925,7 @@ struct text_object *construct_text_object(const char *s, const char *arg, long END OBJ(outlinecolor, 0) #ifdef X11 obj->data.l = arg ? get_x11_color(arg) : default_out_color; + obj->callbacks.print = &new_outline; #endif /* X11 */ END OBJ(stippled_hr, 0) #ifdef X11