aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2012-07-08 02:55:01 +0000
committerokan2012-07-08 02:55:01 +0000
commitcf351fd4cb380c7dd8a4f4ae6738bdce0b804190 (patch)
tree615c0b17a3f27654e5ea172f54d7a544d70138ea
parenta963aec07af03f9048958f2b7dbbae655c21b1b8 (diff)
downloadcwm-cf351fd4cb380c7dd8a4f4ae6738bdce0b804190.tar.gz
fix atom for setting WM_STATE.
Diffstat (limited to '')
-rw-r--r--xutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xutil.c b/xutil.c
index 693b900..c89b215 100644
--- a/xutil.c
+++ b/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);
}