X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fresist.c;h=dc4e2d7051dea248fa92d243405b2b7c3d2ddfe8;hb=501943b53d68821a752ceda3fbd9b64bbcae4a4c;hp=3bcb95ffc4db5779f870d29b47f7fdb6fbd9f129;hpb=ec328fc04fe6e8d8c3d1ee386d4964963eb2ee17;p=chaz%2Fopenbox diff --git a/openbox/resist.c b/openbox/resist.c index 3bcb95ff..dc4e2d70 100644 --- a/openbox/resist.c +++ b/openbox/resist.c @@ -161,7 +161,8 @@ void resist_move_monitors(ObClient *c, gint resist, gint *x, gint *y) cr = RECT_RIGHT(c->frame->area); cb = RECT_BOTTOM(c->frame->area); - RECT_SET(desired_area, *x, *y, c->area.width, c->area.height); + RECT_SET(desired_area, c->frame->area.x, c->frame->area.y, + c->frame->area.width, c->frame->area.height); for (i = 0; i < screen_num_monitors; ++i) { parea = screen_physical_area_monitor(i); @@ -328,7 +329,6 @@ void resist_size_monitors(ObClient *c, gint resist, gint *w, gint *h, Rect *area, *parea; gint al, at, ar, ab; /* screen boundaries */ gint pl, pt, pr, pb; /* physical screen boundaries */ - gint incw, inch; guint i; Rect desired_area; @@ -339,9 +339,6 @@ void resist_size_monitors(ObClient *c, gint resist, gint *w, gint *h, t = RECT_TOP(c->frame->area); b = RECT_BOTTOM(c->frame->area); - incw = c->size_inc.width; - inch = c->size_inc.height; - RECT_SET(desired_area, c->area.x, c->area.y, *w, *h); for (i = 0; i < screen_num_monitors; ++i) {