shithub: plan9front

Download patch

ref: a8ad3fb3d00551bad97e7b10a9666821fe4b601a
parent: 0c0ffafb5bf8a18aeb6871b86a6a049373124725
author: james palmer <james@biobuf.link>
date: Wed Oct 6 05:19:58 EDT 2021

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

--- a/sys/src/cmd/acme/acme.c	Tue Oct  5 16:17:33 2021
+++ b/sys/src/cmd/acme/acme.c	Wed Oct  6 05:19:58 2021
@@ -895,16 +895,14 @@
 		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);
 	draw(button, r, tagcols[BACK], nil, r.min);
-	r.max.x -= 2;
 	border(button, r, 2, tagcols[BORD], ZP);
 
 	r = button->r;
 	modbutton = allocimage(display, r, screen->chan, 0, DNofill);
 	draw(modbutton, r, tagcols[BACK], nil, r.min);
-	r.max.x -= 2;
 	border(modbutton, r, 2, tagcols[BORD], ZP);
 	r = insetrect(r, 2);
 	tmp = allocimage(display, Rect(0,0,1,1), screen->chan, 1, DMedblue);