From 335b2c53ab6fda1fa60be9fa9e9dd10f833ae148 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 29 Oct 2007 12:44:22 +0100 Subject: [PATCH] fix offscreen apperance in Xinerama --- screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/screen.c b/screen.c index c30a4a680..740804658 100644 --- a/screen.c +++ b/screen.c @@ -178,10 +178,10 @@ move_client_to_screen(Client *c, awesome_config *acf_new, Bool doresize) c->rw = si[c->screen].width; if(c->rh > si[c->screen].height) c->rh = si[c->screen].height; - if(c->rx >= si[c->screen].x_org + si[c->screen].width) - c->rx = si[c->screen].x_org - c->rw; - if(c->ry >= si[c->screen].y_org + si[c->screen].height) - c->ry = si[c->screen].y_org - c->rh; + if(c->rx + c->rw >= si[c->screen].x_org + si[c->screen].width) + c->rx = si[c->screen].x_org + si[c->screen].width - c->rw - 2 * c->border; + if(c->ry + c->rh >= si[c->screen].y_org + si[c->screen].height) + c->ry = si[c->screen].y_org + si[c->screen].height - c->rh - 2 * c->border; client_resize(c, c->rx, c->ry, c->rw, c->rh, acf_new, True);