diff options
author | qwx <qwx@sciops.net> | 2022-10-24 07:24:33 +0000 |
---|---|---|
committer | qwx <qwx@sciops.net> | 2022-10-24 07:24:33 +0000 |
commit | f2eef8e077d3a9d7755c18ddf26722eaa3ab81b8 (patch) | |
tree | 7137dc51718b7f027f55be8387b6e892007b75ae /sys | |
parent | c5bfb20546c1694803b0a5d9b7477e5c27af0dba (diff) |
bar: revert boundaries fix, the old ones are fine
Diffstat (limited to 'sys')
-rw-r--r-- | sys/src/cmd/bar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/bar.c b/sys/src/cmd/bar.c index 84d8fd8aa..1157ad245 100644 --- a/sys/src/cmd/bar.c +++ b/sys/src/cmd/bar.c @@ -147,7 +147,6 @@ redraw(void) draw(screen, r, cback, nil, ZP); string(screen, p, ctext, ZP, f, s); if(hlitem >= 0){ - r.min.x += sepw; for(i = 0; i < hlitem; i++) r.min.x += itemw[i]; r.max.x = r.min.x + itemw[i]; @@ -227,7 +226,7 @@ clicked(int x, int buttons) return; } - for(i = 0, ix = sepw; i < nitems; i++){ + for(i = ix = 0; i < nitems; i++){ ix += itemw[i]; if(x <= ix){ fprint(1, "%d\t%s\n", buttons, items[i]); |