summaryrefslogtreecommitdiff
path: root/dwmtimestatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwmtimestatus.c')
-rw-r--r--dwmtimestatus.c3
1 files changed, 2 insertions, 1 deletions
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;
}