diff options
author | okan | 2013-12-13 14:40:52 +0000 |
---|---|---|
committer | okan | 2013-12-13 14:40:52 +0000 |
commit | 8bf0caccf5ae3af242795fe54cb48ec4b847d0e3 (patch) | |
tree | 2f1b843524267a87193b4f21e9b478e5646cbf96 /parse.y | |
parent | 754e61eb263aa34c713a1854a432f4fc979453d7 (diff) | |
download | cwm-8bf0caccf5ae3af242795fe54cb48ec4b847d0e3.tar.gz |
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 '')
-rw-r--r-- | parse.y | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.48 2013/11/25 18:21:55 benno Exp $ */ +/* $OpenBSD: parse.y,v 1.49 2013/12/13 14:40:52 okan Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -70,7 +70,7 @@ typedef struct { %token AUTOGROUP BIND COMMAND IGNORE %token YES NO BORDERWIDTH MOVEAMOUNT %token COLOR SNAPDIST -%token ACTIVEBORDER INACTIVEBORDER +%token ACTIVEBORDER INACTIVEBORDER URGENCYBORDER %token GROUPBORDER UNGROUPBORDER %token MENUBG MENUFG %token FONTCOLOR FONTSELCOLOR @@ -193,6 +193,10 @@ colors : ACTIVEBORDER STRING { free(conf->color[CWM_COLOR_BORDER_INACTIVE]); conf->color[CWM_COLOR_BORDER_INACTIVE] = $2; } + | URGENCYBORDER STRING { + free(conf->color[CWM_COLOR_BORDER_URGENCY]); + conf->color[CWM_COLOR_BORDER_URGENCY] = $2; + } | GROUPBORDER STRING { free(conf->color[CWM_COLOR_BORDER_GROUP]); conf->color[CWM_COLOR_BORDER_GROUP] = $2; @@ -271,6 +275,7 @@ lookup(char *s) { "snapdist", SNAPDIST}, { "sticky", STICKY}, { "ungroupborder", UNGROUPBORDER}, + { "urgencyborder", URGENCYBORDER}, { "yes", YES} }; const struct keywords *p; |