fix segmentation fault in movemouse() (Xinerama)
This commit is contained in:
parent
adf437c0e3
commit
aebe42decd
2
mouse.c
2
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;
|
||||
|
|
Loading…
Reference in New Issue