rio: rect outside screen counts as covered wcovered()
This commit is contained in:
parent
20b4f55603
commit
87fca361f7
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue