aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2012-12-17 22:20:56 +0000
committerBoris Faure <billiob@gmail.com>2012-12-17 22:20:56 +0000
commitd93209d339e89494085af291369c3b251e3ba318 (patch)
tree24ddbe4f0cfbd58b39b236c070869dff3c2edeae
parent782898f63063eedb7c44db767a708de085a19fa1 (diff)
downloadenlightenment-d93209d339e89494085af291369c3b251e3ba318.tar.gz
enlightenment-d93209d339e89494085af291369c3b251e3ba318.tar.xz
enlightenment-d93209d339e89494085af291369c3b251e3ba318.zip
e:tiling: fix resizing/moving windows with a step <= 0
Should close #1996 SVN revision: 81192
-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