X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fresist.c;h=91eabcb08b49c8fd039b58ae3c815cf71b6e3dcd;hb=8ed0970b65e2a74c122059aed8c69057c129db35;hp=62c2b293f0b9fe1879df403e0c5db067c24c15ca;hpb=9ee03ecd279e8f1c3ad56ec8c71f597eb1a588c3;p=chaz%2Fopenbox diff --git a/openbox/resist.c b/openbox/resist.c index 62c2b293..91eabcb0 100644 --- a/openbox/resist.c +++ b/openbox/resist.c @@ -23,6 +23,7 @@ #include "screen.h" #include "dock.h" #include "config.h" +#include "resist.h" #include "parser/parse.h" #include @@ -161,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);