applied sanders somepatches.patch
This commit is contained in:
parent
00e95e1f38
commit
2dd5212a79
7
draw.c
7
draw.c
|
@ -97,9 +97,7 @@ drawstatus()
|
||||||
int i, x;
|
int i, x;
|
||||||
|
|
||||||
dc.x = dc.y = 0;
|
dc.x = dc.y = 0;
|
||||||
dc.w = bw;
|
|
||||||
|
|
||||||
drawtext(NULL, dc.status, False);
|
|
||||||
for(i = 0; i < ntags; i++) {
|
for(i = 0; i < ntags; i++) {
|
||||||
dc.w = textw(tags[i]);
|
dc.w = textw(tags[i]);
|
||||||
if(seltag[i])
|
if(seltag[i])
|
||||||
|
@ -121,9 +119,12 @@ drawstatus()
|
||||||
}
|
}
|
||||||
drawtext(stext, dc.status, False);
|
drawtext(stext, dc.status, False);
|
||||||
|
|
||||||
if(sel && ((dc.w = dc.x - x) > bh)) {
|
if((dc.w = dc.x - x) > bh) {
|
||||||
dc.x = x;
|
dc.x = x;
|
||||||
|
if(sel)
|
||||||
drawtext(sel->name, dc.sel, False);
|
drawtext(sel->name, dc.sel, False);
|
||||||
|
else
|
||||||
|
drawtext(NULL, dc.norm, False);
|
||||||
}
|
}
|
||||||
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
|
XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
|
|
7
dwm.1
7
dwm.1
|
@ -40,7 +40,12 @@ is read and displayed in the status text area.
|
||||||
.TP
|
.TP
|
||||||
.B Button1
|
.B Button1
|
||||||
click on a tag label views all windows with that
|
click on a tag label views all windows with that
|
||||||
.BR tag .
|
.BR tag ,
|
||||||
|
click on the mode label toggles between
|
||||||
|
.B tiled
|
||||||
|
and
|
||||||
|
.B floating
|
||||||
|
mode.
|
||||||
.TP
|
.TP
|
||||||
.B Button3
|
.B Button3
|
||||||
click on a tag label adds/removes all windows with that
|
click on a tag label adds/removes all windows with that
|
||||||
|
|
4
event.c
4
event.c
|
@ -116,9 +116,11 @@ buttonpress(XEvent *e)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(ev->x < x + bmw)
|
if(ev->x < x + bmw) {
|
||||||
|
if(ev->button == Button1)
|
||||||
togglemode(NULL);
|
togglemode(NULL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if((c = getclient(ev->window))) {
|
else if((c = getclient(ev->window))) {
|
||||||
focus(c);
|
focus(c);
|
||||||
if(CLEANMASK(ev->state) == 0)
|
if(CLEANMASK(ev->state) == 0)
|
||||||
|
|
Loading…
Reference in New Issue