optimize a little isvisible()
This commit is contained in:
parent
d34146fcec
commit
2c149b25d3
5
tag.c
5
tag.c
|
@ -139,8 +139,11 @@ isvisible(Client * c, int screen, Tag * tags, int ntags)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if(c->screen != screen)
|
||||||
|
return False;
|
||||||
|
|
||||||
for(i = 0; i < ntags; i++)
|
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 True;
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue