From aebe42decdb1030ce8f303097ddcc81de854d6ee Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 14 Nov 2007 10:43:21 +0100 Subject: [PATCH] fix segmentation fault in movemouse() (Xinerama) --- mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mouse.c b/mouse.c index 0bc9017a7..e987e504e 100644 --- a/mouse.c +++ b/mouse.c @@ -83,7 +83,7 @@ uicb_movemouse(awesome_config *awesomeconf, const char *arg __attribute__ ((unus nx = si[c->screen].x_org + si[c->screen].width - c->w - 2 * c->border; if(abs(ny) < awesomeconf->snap + si[c->screen].y_org && ny > si[c->screen].y_org) ny = si[c->screen].y_org; - else if(abs((si[c->screen].y_org + si[c->screen].height) - (ny + c->h + 2 * c->border)) < awesomeconf[c->screen].snap) + else if(abs((si[c->screen].y_org + si[c->screen].height) - (ny + c->h + 2 * c->border)) < awesomeconf->snap) ny = si[c->screen].y_org + si[c->screen].height - c->h - 2 * c->border; client_resize(c, nx, ny, c->w, c->h, awesomeconf, False, False); break;