Client: Fix multi screen with client_gb_pos()

This commit is contained in:
Martin Duquesnoy 2011-04-29 14:45:57 +02:00
parent cb8e9889c8
commit dbaa966eb9

View File

@ -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);