git: 9front

Download patch

ref: 3213793326c6524f5bafe28d4e37d09066a61faf
parent: 115ed86a2d469cf03661866c239a7c0784e97264
parent: 65eb543379fcdf1accbbf461a6a6b59caa3c29b8
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Apr 20 18:51:22 EDT 2013

merge

--- a/sys/src/9/port/devmouse.c
+++ b/sys/src/9/port/devmouse.c
@@ -517,6 +517,9 @@
 static void
 mouseproc(void*)
 {
+	ulong counter;
+
+	counter = ~0;
 	while(waserror())
 		;
 	for(;;){
@@ -524,10 +527,11 @@
 			mouse.redraw = 0;
 			cursoroff();
 			cursoron();
-			drawactive(1);
-		} else {
-			drawactive(0);
 		}
+
+		drawactive(mouse.counter != counter);
+		counter = mouse.counter;
+
 		tsleep(&mouse.redrawr, shouldredraw, 0, 20*1000);
 	}
 }
--