dwm-meillo

changeset 601:bfea29f1e4a4

final2 indicator
author arg@mig29
date Fri, 01 Dec 2006 12:52:16 +0100
parents ad94ffdfd9ba
children 3c765cc4bce4
files draw.c dwm.1
diffstat 2 files changed, 13 insertions(+), 9 deletions(-) [+]
line diff
     1.1 --- a/draw.c	Fri Dec 01 12:39:13 2006 +0100
     1.2 +++ b/draw.c	Fri Dec 01 12:52:16 2006 +0100
     1.3 @@ -36,7 +36,7 @@
     1.4  	unsigned int len, olen;
     1.5  	XGCValues gcv;
     1.6  	XRectangle r = { dc.x, dc.y, dc.w, dc.h };
     1.7 -	XPoint pt[3];
     1.8 +	XPoint pt[5];
     1.9  
    1.10  	XSetForeground(dpy, dc.gc, col[ColBG]);
    1.11  	XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
    1.12 @@ -81,13 +81,17 @@
    1.13  		XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
    1.14  	}
    1.15  	if(border) {
    1.16 -		pt[0].x = dc.x;
    1.17 -		pt[0].y = dc.y + dc.h;
    1.18 -		pt[1].x = 0;
    1.19 -		pt[1].y = -dc.h;
    1.20 -		pt[2].x = dc.w;
    1.21 -		pt[2].y = 0;
    1.22 -		XDrawLines(dpy, dc.drawable, dc.gc, pt, 3, CoordModePrevious);
    1.23 +		pt[0].x = dc.x + 1;
    1.24 +		pt[0].y = dc.y + 1;
    1.25 +		pt[1].x = dc.w - 2;
    1.26 +		pt[1].y = 0;
    1.27 +		pt[2].x = 0;
    1.28 +		pt[2].y = dc.h - 2;
    1.29 +		pt[3].x = -(dc.w - 2);
    1.30 +		pt[3].y = 0;
    1.31 +		pt[4].x = 0;
    1.32 +		pt[4].y = -(dc.h - 2);
    1.33 +		XDrawLines(dpy, dc.drawable, dc.gc, pt, 5, CoordModePrevious);
    1.34  	}
    1.35  }
    1.36  
     2.1 --- a/dwm.1	Fri Dec 01 12:39:13 2006 +0100
     2.2 +++ b/dwm.1	Fri Dec 01 12:52:16 2006 +0100
     2.3 @@ -22,7 +22,7 @@
     2.4  the title of the focused window, and the text read from standard input. The
     2.5  selected tags are indicated with a different color. The tags of the focused
     2.6  window are indicated with a small point in the top left corner.  The tags which
     2.7 -are applied to one or more clients are indicated with a pseudo-3d border.
     2.8 +are applied to one or more clients are indicated with a border.
     2.9  .P
    2.10  dwm draws a 1-pixel border around windows to indicate the focus state.
    2.11  Unfocused windows contain a small bar in front of them displaying their title.