diff options
author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-19 18:39:54 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-19 18:39:54 +0200 |
commit | fc109ea8f72e662ed58ef45329b6ca9e91d61d3b (patch) | |
tree | b9151a8d6abf70dd33b232d265304c5ec1c9e666 /screen.c | |
parent | b975c4728046052a32626378df193217a96fbefc (diff) | |
download | dwm-fc109ea8f72e662ed58ef45329b6ca9e91d61d3b.tar.gz dwm-fc109ea8f72e662ed58ef45329b6ca9e91d61d3b.tar.bz2 dwm-fc109ea8f72e662ed58ef45329b6ca9e91d61d3b.zip |
fixed misappearance of iconified windows on SIGKILL
Diffstat (limited to 'screen.c')
-rw-r--r-- | screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -60,7 +60,7 @@ setdwmprops(void) { for(i = 0; i < ntags && i < sizeof prop - 1; i++) prop[i] = seltags[i] ? '1' : '0'; if(i < sizeof prop - 1) - prop[i++] = (char)ltidx; + prop[i++] = (char)ltidx + '0'; prop[i] = '\0'; XChangeProperty(dpy, root, dwmprops, XA_STRING, 8, PropModeReplace, (unsigned char *)prop, i); @@ -223,8 +223,8 @@ getdwmprops(void) { for(i = 0; i < ntags && i < sizeof prop - 1 && prop[i] != '\0'; i++) seltags[i] = prop[i] == '1'; if(i < sizeof prop - 1 && prop[i] != '\0') { - if(prop[i] < nlayouts) - ltidx = prop[i]; + if((unsigned int)(prop[i] - '0') < nlayouts) + ltidx = prop[i] - '0'; } } } |