mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
fix segmentation fault in movemouse() (Xinerama)
This commit is contained in:
parent
adf437c0e3
commit
aebe42decd
1 changed files with 1 additions and 1 deletions
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 a new issue