wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 9ada8edddce7b016f663e10a2772cb89108eaf70
parent 2f7674d31a742966e3ac6e7ab553f1bd078d7d0b
Author: Kris Maglione <bsdaemon@wmii.de>
Date:   Fri, 23 Jun 2006 03:44:59 -0400

Fixed drawing of the bar background. Fixed use of wmiir create in line with prev. commit.


Diffstat:
cmd/wm/wm.c | 2++
rc/status | 2+-
rc/wmiirc | 9++++-----
3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c @@ -338,6 +338,8 @@ main(int argc, char *argv[]) bbrush.drawable = XCreatePixmap(blz.display, barwin, brect.width, brect.height, DefaultDepth(blz.display, blz.screen)); bbrush.rect = brect; + bbrush.rect.x = 0; + bbrush.rect.y = 0; bbrush.color = def.normcolor; bbrush.font = &def.font; diff --git a/rc/status b/rc/status @@ -7,7 +7,7 @@ xwrite() { } wmiir remove /rbar/status 2>/dev/null && sleep 2 -wmiir create /rbar/status +echo $WMII_SELCOLORS | wmiir create /rbar/status while xwrite /rbar/status "$WMII_NORMCOLORS" `date` `uptime | sed 's/.*://; s/,//g'` do sleep 1 diff --git a/rc/wmiirc b/rc/wmiirc @@ -141,17 +141,16 @@ do exit fi;; CreateTag) - wmiir create /lbar/$1 - xwrite /lbar/$1 $WMII_NORMCOLORS $1 + echo "/lbar/$@" $WMII_NORMCOLORS $@ | wmiir create /lbar/$1 ;; DestroyTag) - wmiir remove /lbar/$1 + wmiir remove "/lbar/$@" ;; FocusTag) - xwrite /lbar/$1 $WMII_SELCOLORS $1 + xwrite "/lbar/$@" $WMII_SELCOLORS $@ ;; UnfocusTag) - xwrite /lbar/$1 $WMII_NORMCOLORS $1 + xwrite "/lbar/$@" $WMII_NORMCOLORS $@ ;; LeftBarClick) shift