changeset 13:c65d4f8dc8fd

use inverse border color
author paulo
date Sat, 12 Mar 2016 23:30:00 -0800
parents d65207f4021a
children 09e9101ee51e
files client.c config.h event.c
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/client.c	Wed Sep 19 00:10:25 2012 -0700
     1.2 +++ b/client.c	Sat Mar 12 23:30:00 2016 -0800
     1.3 @@ -164,7 +164,7 @@
     1.4  	if(!selscreen)
     1.5  		return;
     1.6  	if(c) {
     1.7 -		XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
     1.8 +		XSetWindowBorder(dpy, c->win, (getkeymode() == COMMANDMODE) ? dc.inv[ColBorder] :  dc.sel[ColBorder]);
     1.9  		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
    1.10  	}
    1.11  	else
     2.1 --- a/config.h	Wed Sep 19 00:10:25 2012 -0700
     2.2 +++ b/config.h	Sat Mar 12 23:30:00 2016 -0800
     2.3 @@ -11,7 +11,7 @@
     2.4  #define SELBORDERCOLOR		"#ff0000"
     2.5  #define SELBGCOLOR		"#222222"
     2.6  #define SELFGCOLOR		"#00ff00"
     2.7 -#define INVBORDERCOLOR		"#aaaaaa"
     2.8 +#define INVBORDERCOLOR		"#0000aa"
     2.9  #define INVBGCOLOR		"#000099"
    2.10  #define INVFGCOLOR		"#eeee00"
    2.11  #define TOPBAR			True		/* False */
     3.1 --- a/event.c	Wed Sep 19 00:10:25 2012 -0700
     3.2 +++ b/event.c	Sat Mar 12 23:30:00 2016 -0800
     3.3 @@ -512,7 +512,10 @@
     3.4  	keymode = arg->i;
     3.5  	clearcmd(&a);
     3.6  	grabkeys();
     3.7 -	drawstatus();
     3.8 +	if(sel)
     3.9 +		focus(sel);
    3.10 +	else
    3.11 +		drawstatus();
    3.12  }
    3.13  
    3.14  unsigned int