Client: Check if client is tiled for position research
This commit is contained in:
parent
1061b79c5a
commit
06fb9553fc
@ -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 */
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user