changed symbols for float/tiled mode, added mouse-driven mode toggle to buttonpress()
This commit is contained in:
parent
9f35cc52fe
commit
d37dfa1bed
2
draw.c
2
draw.c
|
@ -94,7 +94,7 @@ drawall()
|
|||
void
|
||||
drawstatus()
|
||||
{
|
||||
static const char *mode[] = { "~", "|" };
|
||||
static const char *mode[] = { "><", "|=" };
|
||||
int i, x;
|
||||
|
||||
dc.x = dc.y = 0;
|
||||
|
|
4
event.c
4
event.c
|
@ -106,7 +106,8 @@ buttonpress(XEvent *e)
|
|||
|
||||
if(barwin == ev->window) {
|
||||
if(ev->x < modew)
|
||||
return;
|
||||
togglemode(NULL);
|
||||
else {
|
||||
x = modew;
|
||||
for(a.i = 0; a.i < ntags; a.i++) {
|
||||
x += textw(tags[a.i]);
|
||||
|
@ -119,6 +120,7 @@ buttonpress(XEvent *e)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if((c = getclient(ev->window))) {
|
||||
focus(c);
|
||||
if(CLEANMASK(ev->state) == 0)
|
||||
|
|
Loading…
Reference in New Issue