summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2012-07-08 02:50:42 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2012-07-08 02:50:42 +0000
commit228465aa31c72354db9bebe6a125554f3953fd96 (patch)
tree363a0709d4a93fe202085e1de1395cf62895e4ea
parent0e2204bc268193ce0408d89a897c9d9c62afe817 (diff)
fix atom for retrieving WM_STATE between re-exec's.
-rw-r--r--app/cwm/xutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/xutil.c b/app/cwm/xutil.c
index 51eba6bb4..693b9006d 100644
--- a/app/cwm/xutil.c
+++ b/app/cwm/xutil.c
@@ -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);