diff -ru wmii.sti/frame.c wmii.3c/frame.c --- wmii.sti/frame.c 2006-10-20 11:00:04.000000000 +0200 +++ wmii.3c/frame.c 2006-12-17 23:29:05.605324750 +0100 @@ -60,14 +60,14 @@ void update_frame_widget_colors(Frame *f) { - if(sel_screen && (f->client == sel_client())) - f->tile.color = f->titlebar.color = def.selcolor; - else - f->tile.color = f->titlebar.color = def.normcolor; - if(f->area->sel == f) - f->grabbox.color = def.selcolor; + if(f->area->sel == f) { + if(sel_screen && (f->client == sel_client())) + f->grabbox.color = f->tile.color = f->titlebar.color = def.focuscolor; + else + f->grabbox.color = f->tile.color = f->titlebar.color = def.selcolor; + } else - f->grabbox.color = def.normcolor; + f->grabbox.color = f->tile.color = f->titlebar.color = def.normcolor; } void diff -ru wmii.sti/fs.c wmii.3c/fs.c --- wmii.sti/fs.c 2006-12-17 23:17:28.049730000 +0100 +++ wmii.3c/fs.c 2006-12-17 23:29:05.609325000 +0100 @@ -247,6 +247,11 @@ n = strlen(message); return parse_colors(&message, (int *)&n, &def.normcolor); } + else if(!strncmp(message, "focuscolors ", 12)) { + message += 12; + n = strlen(message); + return parse_colors(&message, (int *)&n, &def.focuscolor); + } else if(!strncmp(message, "b1colors ", 9)) { message += 9; n = strlen(message); @@ -298,6 +303,7 @@ i += snprintf(&buffer[i], (BUFFER_SIZE - i), "view %s\n", screen->sel->name); i += snprintf(&buffer[i], (BUFFER_SIZE - i), "selcolors %s\n", def.selcolor.colstr); i += snprintf(&buffer[i], (BUFFER_SIZE - i), "normcolors %s\n", def.normcolor.colstr); + i += snprintf(&buffer[i], (BUFFER_SIZE - i), "focuscolors %s\n", def.focuscolor.colstr); i += snprintf(&buffer[i], (BUFFER_SIZE - i), "font %s\n", def.font.fontstr); i += snprintf(&buffer[i], (BUFFER_SIZE - i), "grabmod %s\n", def.grabmod); i += snprintf(&buffer[i], (BUFFER_SIZE - i), "border %d\n", def.border); diff -ru wmii.sti/rc/wmiirc wmii.3c/rc/wmiirc --- wmii.sti/rc/wmiirc 2006-12-17 23:27:40.568010250 +0100 +++ wmii.3c/rc/wmiirc 2006-12-17 23:29:05.609325000 +0100 @@ -32,12 +32,15 @@ WMII_NORMFG='#000000' WMII_SELBG='#dd7700' WMII_SELFG='#000000' +WMII_FOCUSBG='#bb0000' +WMII_FOCUSFG='#ffffff' WMII_BACKGROUND='#000000' # colors are text,bg,border WMII_NORMCOLORS="$WMII_NORMFG $WMII_NORMBG $WMII_NORMBG" WMII_SELCOLORS="$WMII_SELFG $WMII_SELBG $WMII_SELBG" -DMENU="dmenu -font $WMII_FONT -normbg $WMII_NORMBG -normfg $WMII_NORMFG -selbg $WMII_SELBG -selfg $WMII_SELFG" -export DMENU WMII_FONT WMII_SELCOLORS WMII_NORMCOLORS +WMII_FOCUSCOLORS="$WMII_FOCUSFG $WMII_FOCUSBG $WMII_FOCUSBG" +DMENU="dmenu -font $WMII_FONT -normbg $WMII_NORMBG -normfg $WMII_NORMFG -selbg $WMII_FOCUSBG -selfg $WMII_FOCUSFG" +export DMENU WMII_FONT WMII_SELCOLORS WMII_NORMCOLORS WMII_FOCUSCOLORS WMII_TERM="xterm" export WMII_TERM @@ -49,6 +52,7 @@ font $WMII_FONT selcolors $WMII_SELCOLORS normcolors $WMII_NORMCOLORS +focuscolors $WMII_FOCUSCOLORS grabmod $MODKEY border 2 EOF @@ -130,7 +134,7 @@ while read tag do if [ "X$tag" = "X$seltag" ]; then - echo "$WMII_SELCOLORS" "$tag" | ixpc create "/lbar/$tag" + echo "$WMII_FOCUSCOLORS" "$tag" | ixpc create "/lbar/$tag" else echo "$WMII_NORMCOLORS" "$tag" | ixpc create "/lbar/$tag" fi @@ -158,7 +162,7 @@ ixpc remove "/lbar/$parms" ;; FocusTag) - xwrite "/lbar/$parms" "$WMII_SELCOLORS" "$parms" + xwrite "/lbar/$parms" "$WMII_FOCUSCOLORS" "$parms" ;; UnfocusTag) xwrite "/lbar/$parms" "$WMII_NORMCOLORS" "$parms" diff -ru wmii.sti/wmii.h wmii.3c/wmii.h --- wmii.sti/wmii.h 2006-12-13 12:00:06.000000000 +0100 +++ wmii.3c/wmii.h 2006-12-17 23:29:05.609325000 +0100 @@ -187,6 +187,7 @@ struct { BlitzColor selcolor; BlitzColor normcolor; + BlitzColor focuscolor; BlitzColor bcolor[3]; BlitzFont font; unsigned int border;