snap to all heads the window is present on
This commit is contained in:
parent
05a850b88e
commit
bbe0e7da26
1 changed files with 19 additions and 14 deletions
|
@ -108,7 +108,11 @@ static void resist_move(Client *c, int *x, int *y)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* get the screen boundaries */
|
/* get the screen boundaries */
|
||||||
area = screen_area_xinerama(c->desktop, client_xinerama_area(c));
|
for (i = 0; i < screen_num_xin_areas; ++i) {
|
||||||
|
area = screen_area_xinerama(c->desktop, i);
|
||||||
|
|
||||||
|
if (!RECT_INTERSECTS_RECT(*area, c->frame->area))
|
||||||
|
continue;
|
||||||
|
|
||||||
al = area->x;
|
al = area->x;
|
||||||
at = area->y;
|
at = area->y;
|
||||||
|
@ -125,6 +129,7 @@ static void resist_move(Client *c, int *x, int *y)
|
||||||
else if (cb <= ab && b > ab && b < ab + resistance)
|
else if (cb <= ab && b > ab && b < ab + resistance)
|
||||||
*y = ab - h + 1;
|
*y = ab - h + 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void resist_size(Client *c, int *w, int *h, Corner corn)
|
static void resist_size(Client *c, int *w, int *h, Corner corn)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue