aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/modules/tiling/e_mod_tiling.c4
1 files 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