Client: Check if client is tiled for position research

This commit is contained in:
Martin Duquesnoy 2011-05-04 20:03:15 +02:00
parent 1061b79c5a
commit 06fb9553fc
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ cfactor_set(Client *c, Position p, int fac)
Client *gc = NULL;
int x, y;
if(!c || p > Bottom)
if(!c || !(c->flags & TileFlag) || p > Bottom)
return;
/* Start place of pointer for faster scanning */

View File

@ -532,7 +532,7 @@ client_urgent(Client *c, Bool u)
return NULL;
for(cc = clients; cc; cc = cc->next)
if(!ishide(cc, selscreen) && cc != c)
if(!ishide(cc, selscreen) && (cc->flags & TileFlag) && cc != c)
if(cc->frame_geo.x <= x && cc->frame_geo.x + cc->frame_geo.width >= x
&& cc->frame_geo.y <= y && cc->frame_geo.y + cc->frame_geo.height >= y)
return cc;