summaryrefslogtreecommitdiff
path: root/app/cwm
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2012-07-08 02:55:02 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2012-07-08 02:55:02 +0000
commitb5e0171cff25c42b562c55ec774bbaac376c31b5 (patch)
tree500ef873000387dbc9cf0771812a83501ebe009c /app/cwm
parent228465aa31c72354db9bebe6a125554f3953fd96 (diff)
fix atom for setting WM_STATE.
Diffstat (limited to 'app/cwm')
-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 693b9006d..c89b21540 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.42 2012/07/08 02:50:41 okan Exp $
+ * $OpenBSD: xutil.c,v 1.43 2012/07/08 02:55:01 okan Exp $
*/
#include <sys/param.h>
@@ -227,7 +227,7 @@ xu_setstate(struct client_ctx *cc, int state)
cc->state = state;
XChangeProperty(X_Dpy, cc->win,
- cwmh[WM_STATE].atom, WM_STATE, 32,
+ cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 32,
PropModeReplace, (unsigned char *)dat, 2);
}