From d93209d339e89494085af291369c3b251e3ba318 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Mon, 17 Dec 2012 22:20:56 +0000 Subject: [PATCH] e:tiling: fix resizing/moving windows with a step <= 0 Should close #1996 SVN revision: 81192 --- src/modules/tiling/e_mod_tiling.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c index 628fc96da..bfcc1b23f 100644 --- a/src/modules/tiling/e_mod_tiling.c +++ b/src/modules/tiling/e_mod_tiling.c @@ -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