summaryrefslogtreecommitdiff
path: root/app/cwm/conf.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-12-13 14:40:53 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-12-13 14:40:53 +0000
commitb864308ec6d48f74393b05c05f6a6936b4864b41 (patch)
treea80bac6e86157fe240f66a3d816e719cfd35a997 /app/cwm/conf.c
parentb93885b5e8bd6e1a0f7e0c82aeaacc12634e43e2 (diff)
Add support for XUrgency and matching _NET_WM_STATE_DEMANDS_ATTENTION
ewmh hint; urgencyborder is configurable. The urgency flag will stick, even while on a client in a non-viewable group, until the client receives focus (where the border is reset). Initial diff from Thomas Adam with some changes/enhancements from me.
Diffstat (limited to 'app/cwm/conf.c')
-rw-r--r--app/cwm/conf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c
index 15375c841..feaafa887 100644
--- a/app/cwm/conf.c
+++ b/app/cwm/conf.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: conf.c,v 1.150 2013/11/27 18:34:34 okan Exp $
+ * $OpenBSD: conf.c,v 1.151 2013/12/13 14:40:52 okan Exp $
*/
#include <sys/param.h>
@@ -88,6 +88,7 @@ conf_ignore(struct conf *c, char *val)
static char *color_binds[] = {
"#CCCCCC", /* CWM_COLOR_BORDER_ACTIVE */
"#666666", /* CWM_COLOR_BORDER_INACTIVE */
+ "#FC8814", /* CWM_COLOR_BORDER_URGENCY */
"blue", /* CWM_COLOR_BORDER_GROUP */
"red", /* CWM_COLOR_BORDER_UNGROUP */
"black", /* CWM_COLOR_MENU_FG */
@@ -687,6 +688,7 @@ static char *ewmhints[] = {
"_NET_WM_STATE",
"_NET_WM_STATE_MAXIMIZED_VERT",
"_NET_WM_STATE_MAXIMIZED_HORZ",
+ "_NET_WM_STATE_DEMANDS_ATTENTION",
};
void