optimize a little isvisible()

This commit is contained in:
Julien Danjou 2007-09-26 18:56:58 +02:00
parent d34146fcec
commit 2c149b25d3
1 changed files with 4 additions and 1 deletions

5
tag.c
View File

@ -139,8 +139,11 @@ isvisible(Client * c, int screen, Tag * tags, int ntags)
{
int i;
if(c->screen != screen)
return False;
for(i = 0; i < ntags; i++)
if(c->tags[i] && tags[i].selected && c->screen == screen)
if(c->tags[i] && tags[i].selected)
return True;
return False;
}