about summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/xutil.c b/xutil.c
index bc37558..d3253ad 100644
--- a/xutil.c
+++ b/xutil.c
@@ -414,6 +414,21 @@ xu_ewmh_set_net_wm_state(struct client_ctx *cc)
 	free(atoms);
 }
 
+int
+xu_cwm_allow_raise(struct client_ctx *cc)
+{
+	long	 noraise = 0;
+	long	*noraisep;
+
+	if (xu_getprop(cc->win, cwmh[CWM_NORAISE],
+	    XA_CARDINAL, 1, (unsigned char **)&noraisep) > 0) {
+		noraise = *noraisep;
+		XFree(noraisep);
+	}
+
+	return noraise == 0;
+}
+
 void
 xu_xorcolor(XftColor a, XftColor b, XftColor *r)
 {