From dbaa966eb95bba679e930a848760f2b6a5f946b7 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Fri, 29 Apr 2011 14:45:57 +0200 Subject: [PATCH] Client: Fix multi screen with client_gb_pos() --- src/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.c b/src/client.c index e1b9c89..090d267 100644 --- a/src/client.c +++ b/src/client.c @@ -529,8 +529,8 @@ client_urgent(Client *c, Bool u) Window w; int d, dx, dy, basex, basey; - if(x < 1 || x > sgeo[selscreen].width - || y < 1 || y > sgeo[selscreen].height) + if(x < 1 || x > sgeo[selscreen].x + sgeo[selscreen].width + || y < 1 || y > sgeo[selscreen].y + sgeo[selscreen].height) return NULL; XQueryPointer(dpy, ROOT, &w, &w, &basex, &basey, &d, &d, (uint *)&d);