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.
This commit is contained in:
Ray Chason
2026-08-14 11:08:25 +03:00
committed by Pasi Kallinen
parent b56189cfcd
commit f7bb4eaae8
+3 -1
View File
@@ -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;
}
}