summaryrefslogtreecommitdiff
path: root/openbox/resist.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2009-12-16 16:05:56 -0500
committerDana Jansens <danakj@orodu.net>2009-12-16 16:07:17 -0500
commita4b2e3a86ed7d9a530b8fa2c7711e8fbe24be399 (patch)
treee079fef20dc8f160f6a696eb4adb2834265ab622 /openbox/resist.c
parent8ada991d829671ab5e6dd4c5526b6a0238ba6a16 (diff)
Fix resistance against struts, the resistance was always 0
Diffstat (limited to 'openbox/resist.c')
-rw-r--r--openbox/resist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/resist.c b/openbox/resist.c
index f21eb8e6..91eabcb0 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);