git: 9front

Download patch

ref: dfb0ed24233a87af9879ca8d41a98c4bda6a4095
parent: 8b7f059c562dc192c77cb7a241151560d0850318
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Tue Aug 21 20:11:42 EDT 2012

rio: rect outside screen counts as covered wcovered()

--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -662,6 +662,8 @@
 
 	if(Dx(r) < font->height || Dy(r) < font->height)
 		return 1;
+	if(!rectclip(&r, screen->r))
+		return 1;
 	for(; i<nwindow; i++){
 		t = window[i];
 		if(t == w || t->topped <= w->topped || t->deleted)
--