From f7bb4eaae8e6ef1fa0bf8aed3b9d8503f9bc6ca3 Mon Sep 17 00:00:00 2001 From: Ray Chason Date: Mon, 10 Aug 2026 13:02:15 -0400 Subject: [PATCH] Fix timeout of fancy status colors This was trying to retrieve the foreground color of the form created in create_value(). Forms don't have colors, and so this was failing, and update_color() didn't update the color. --- win/X11/winstat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win/X11/winstat.c b/win/X11/winstat.c index 1c48a53be..4075d4a4e 100644 --- a/win/X11/winstat.c +++ b/win/X11/winstat.c @@ -1633,8 +1633,10 @@ update_val(struct X_status_value *attr_rec, long new_value) } attr_rec->turn_count = 0; } else { + Widget w = (attr_rec->type == SV_LABEL || attr_rec->type == SV_NAME) ? attr_rec->w + : get_value_widget(attr_rec->w); XtSetArg(args[0], XtNforeground, &attr_rec->default_fg); - XtGetValues(attr_rec->w, args, ONE); + XtGetValues(w, args, ONE); attr_rec->after_init = TRUE; } }