From a4b2e3a86ed7d9a530b8fa2c7711e8fbe24be399 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 16 Dec 2009 16:05:56 -0500 Subject: [PATCH] Fix resistance against struts, the resistance was always 0 --- openbox/resist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbox/resist.c b/openbox/resist.c index f21eb8e..91eabcb 100644 --- a/openbox/resist.c +++ b/openbox/resist.c @@ -162,7 +162,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); -- 1.9.1