e:tiling: fix resizing/moving windows with a step <= 0

Should close #1996

SVN revision: 81192
This commit is contained in:
Boris Faure 2012-12-17 22:20:56 +00:00
parent 782898f630
commit d93209d339
1 changed files with 2 additions and 2 deletions

View File

@ -3706,13 +3706,13 @@ static void _move_or_resize(E_Border *bd)
}
}
if (abs(extra->expected.w - bd->w) >= bd->client.icccm.step_w) {
if (abs(extra->expected.w - bd->w) >= MAX(bd->client.icccm.step_w, 1)) {
if (_G.tinfo->conf->use_rows)
_move_resize_border_in_stack(bd, extra, stack, TILING_RESIZE);
else
_move_resize_border_stack(bd, extra, stack, TILING_RESIZE);
}
if (abs(extra->expected.h - bd->h) >= bd->client.icccm.step_h) {
if (abs(extra->expected.h - bd->h) >= MAX(bd->client.icccm.step_h, 1)) {
if (_G.tinfo->conf->use_rows)
_move_resize_border_stack(bd, extra, stack, TILING_RESIZE);
else