From 06fb9553fc4d49e6432e675e6591cce9c613e74d Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Wed, 4 May 2011 20:03:15 +0200 Subject: [PATCH] Client: Check if client is tiled for position research --- src/cfactor.c | 2 +- src/client.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfactor.c b/src/cfactor.c index 0b18112..06561c7 100644 --- a/src/cfactor.c +++ b/src/cfactor.c @@ -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 */ diff --git a/src/client.c b/src/client.c index 3157c65..4761c82 100644 --- a/src/client.c +++ b/src/client.c @@ -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;