X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fresist.c;h=729f83fc891ebf99db7172c2c5a5d5e8d32b1fac;hb=902555c95cfdfc20313a26e8740def7e7dcf4dc7;hp=077c46677413f45db27e0f75917d5b479557a98c;hpb=7d27d9d398b92e73aa47dd37e4418166c03bf0ca;p=chaz%2Fopenbox diff --git a/openbox/resist.c b/openbox/resist.c index 077c4667..729f83fc 100644 --- a/openbox/resist.c +++ b/openbox/resist.c @@ -36,6 +36,8 @@ void resist_move_windows(ObClient *c, gint resist, gint *x, gint *y) if (!resist) return; + frame_client_gravity(c->frame, x, y, c->area.width, c->area.height); + w = c->frame->area.width; h = c->frame->area.height; @@ -112,6 +114,8 @@ void resist_move_windows(ObClient *c, gint resist, gint *x, gint *y) if (snapx && snapy) break; } + + frame_frame_gravity(c->frame, x, y, c->area.width, c->area.height); } void resist_move_monitors(ObClient *c, gint resist, gint *x, gint *y) @@ -126,6 +130,8 @@ void resist_move_monitors(ObClient *c, gint resist, gint *x, gint *y) if (!resist) return; + frame_client_gravity(c->frame, x, y, c->area.width, c->area.height); + w = c->frame->area.width; h = c->frame->area.height; @@ -173,6 +179,8 @@ void resist_move_monitors(ObClient *c, gint resist, gint *x, gint *y) else if (cb <= pb && b > pb && b < pb + resist) *y = pb - h + 1; } + + frame_frame_gravity(c->frame, x, y, c->area.width, c->area.height); } void resist_size_windows(ObClient *c, gint resist, gint *w, gint *h,