acme: don't let tag button draw over tag border.

This commit is contained in:
james palmer 2021-10-06 09:19:58 +00:00 committed by Ori Bernstein
parent 0c0ffafb5b
commit a8ad3fb3d0

View file

@ -895,16 +895,14 @@ iconinit(void)
freeimage(colbutton); freeimage(colbutton);
} }
r = Rect(0, 0, Scrollwid+2, font->height+1); r = Rect(0, 0, Scrollwid, font->height+1);
button = allocimage(display, r, screen->chan, 0, DNofill); button = allocimage(display, r, screen->chan, 0, DNofill);
draw(button, r, tagcols[BACK], nil, r.min); draw(button, r, tagcols[BACK], nil, r.min);
r.max.x -= 2;
border(button, r, 2, tagcols[BORD], ZP); border(button, r, 2, tagcols[BORD], ZP);
r = button->r; r = button->r;
modbutton = allocimage(display, r, screen->chan, 0, DNofill); modbutton = allocimage(display, r, screen->chan, 0, DNofill);
draw(modbutton, r, tagcols[BACK], nil, r.min); draw(modbutton, r, tagcols[BACK], nil, r.min);
r.max.x -= 2;
border(modbutton, r, 2, tagcols[BORD], ZP); border(modbutton, r, 2, tagcols[BORD], ZP);
r = insetrect(r, 2); r = insetrect(r, 2);
tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DMedblue); tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DMedblue);