summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwmtimestatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwmtimestatus.c b/dwmtimestatus.c
index 90b453a..3db504c 100644
--- a/dwmtimestatus.c
+++ b/dwmtimestatus.c
@@ -49,8 +49,8 @@ void sighandler( int si_code, siginfo_t *si_info, void *si_adr ){
void update_status( struct status *status_info ){
if ( status_info == NULL )
return;
- if ( XChangeProperty(status_info->dpy, status_info->root, XA_WM_NAME, XA_STRING, 8, PropModeReplace, (_Xconst unsigned char*)&status_info->status, status_info->status_len) == BadLength )
- fputs( "Error: XChangeProperty returned BadLength\n", stderr );
+ if ( XChangeProperty(status_info->dpy, status_info->root, XA_WM_NAME, XA_STRING, 8, PropModeReplace, (_Xconst unsigned char*)&status_info->status, status_info->status_len) != 1 )
+ fputs( "Error: XChangeProperty() failed\n", stderr );
XSync( status_info->dpy, 0 );
return;
}