This commit is contained in:
2026-07-12 08:16:17 +03:30
commit 72be1234e1
2027 changed files with 221388 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
Client *
recttoclient(int x, int y, int w, int h, int include_floating)
{
Client *c, *r = NULL;
int a, area = 1;
for (c = selmon->stack; c; c = c->snext) {
if (!ISVISIBLE(c) || (c->isfloating && !include_floating))
continue;
if ((a = INTERSECTC(x, y, w, h, c)) >= area) {
area = a;
r = c;
}
}
return r;
}