diff options
author | okan | 2012-07-08 02:50:41 +0000 |
---|---|---|
committer | okan | 2012-07-08 02:50:41 +0000 |
commit | a963aec07af03f9048958f2b7dbbae655c21b1b8 (patch) | |
tree | e9fb5e3efafafc680df576e9b05306fea35fb7c6 /xutil.c | |
parent | 0b4988835551324c8c28bc9f9839663467948f4c (diff) | |
download | cwm-a963aec07af03f9048958f2b7dbbae655c21b1b8.tar.gz |
fix atom for retrieving WM_STATE between re-exec's.
Diffstat (limited to '')
-rw-r--r-- | xutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xutil.c,v 1.41 2012/07/03 13:49:03 okan Exp $ + * $OpenBSD: xutil.c,v 1.42 2012/07/08 02:50:41 okan Exp $ */ #include <sys/param.h> @@ -207,7 +207,7 @@ xu_getstate(struct client_ctx *cc, int *state) { long *p = NULL; - if (xu_getprop(cc->win, cwmh[WM_STATE].atom, WM_STATE, 2L, + if (xu_getprop(cc->win, cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 2L, (u_char **)&p) <= 0) return (-1); |