shithub: riscv

Download patch

ref: 6cc7c754be8545860deb76bafc1cff7881b77f79
parent: 19388b8e023951ba34b8c5d0cdaae5d94b1b7d7e
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Mon Aug 22 17:00:32 EDT 2022

audio/zuke: don't blink the mouse pointer while idling

--- a/sys/src/cmd/audio/zuke/zuke.c
+++ b/sys/src/cmd/audio/zuke/zuke.c
@@ -421,6 +421,7 @@
 		w = stringwidth(f, tmp);
 		snprint(tmp, sizeof(tmp), "%s%d%%", shuffle != nil ? "∫ " : "", volume);
 	}
+
 	r = back->r;
 	right = r.max.x - w - 4;
 	r.min.x = left;
@@ -455,7 +456,10 @@
 		draw(back, r, colors[Dbmed].im, nil, ZP);
 	}
 
+	if(!full)
+		replclipr(screen, 0, Rpt(addpt(screen->r.min, sel.min), screen->r.max));
 	draw(screen, screen->r, back, nil, ZP);
+	replclipr(screen, 0, screen->r);
 	flushimage(display, 1);
 	unlockdisplay(display);
 }
@@ -1404,7 +1408,7 @@
 				scroll = pcur - scrollsz;
 		}
 
-		if(scroll != oscroll)
+		if(scroll != oscroll || pcur != oldpcur)
 			redraw(1);
 	}