From 564f4fbbeff623d97e12c1f446d9a69d240ced5e Mon Sep 17 00:00:00 2001 From: stderr64 Date: Mon, 26 Jan 2026 22:19:24 +0200 Subject: Use XChangeProperty directly instead of going through XSetTextProperty --- dwmtimestatus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dwmtimestatus.c b/dwmtimestatus.c index 6c664b8..6edee28 100644 --- a/dwmtimestatus.c +++ b/dwmtimestatus.c @@ -49,7 +49,8 @@ void sighandler( int si_code, siginfo_t *si_info, void *si_adr ){ void update_status( struct status *status_info, XTextProperty *xprops ){ if ( status_info == NULL || xprops == NULL ) return; - XSetTextProperty( status_info->dpy, status_info->root, xprops, XA_WM_NAME ); + if ( XChangeProperty(status_info->dpy, status_info->root, XA_WM_NAME, XA_STRING, 8, PropModeReplace, (_Xconst unsigned char*)&status_info->status, (int)xprops->nitems) == BadLength ) + fputs( "Error: XChangeProperty returned BadLength\n", stderr ); XSync( status_info->dpy, 0 ); return; } -- cgit v1.2.3-95-g76ab