diff options
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -897,10 +897,10 @@ getstate(Window w) | |||
| 897 | Atom real; | 897 | Atom real; |
| 898 | 898 | ||
| 899 | if (XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState], | 899 | if (XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState], |
| 900 | &real, &format, &n, &extra, (unsigned char **)&p) != Success) | 900 | &real, &format, &n, &extra, &p) != Success) |
| 901 | return -1; | 901 | return -1; |
| 902 | if (n != 0) | 902 | if (n != 0 && format == 32) |
| 903 | result = *p; | 903 | result = *(long *)p; |
| 904 | XFree(p); | 904 | XFree(p); |
| 905 | return result; | 905 | return result; |
| 906 | } | 906 | } |
