rio: rect outside screen counts as covered wcovered()

This commit is contained in:
cinap_lenrek 2012-08-22 00:11:42 +02:00
parent 20b4f55603
commit 87fca361f7

View file

@ -662,6 +662,8 @@ wcovered(Window *w, Rectangle r, int i)
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)