forked from enlightenment/enlightenment
e:tiling: fix resizing/moving windows with a step <= 0
Should close #1996 SVN revision: 81192
This commit is contained in:
parent
782898f630
commit
d93209d339
|
@ -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)
|
if (_G.tinfo->conf->use_rows)
|
||||||
_move_resize_border_in_stack(bd, extra, stack, TILING_RESIZE);
|
_move_resize_border_in_stack(bd, extra, stack, TILING_RESIZE);
|
||||||
else
|
else
|
||||||
_move_resize_border_stack(bd, extra, stack, TILING_RESIZE);
|
_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)
|
if (_G.tinfo->conf->use_rows)
|
||||||
_move_resize_border_stack(bd, extra, stack, TILING_RESIZE);
|
_move_resize_border_stack(bd, extra, stack, TILING_RESIZE);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue