diff options
author | Tom Hacohen <tom@stosb.com> | 2014-01-16 17:26:06 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2014-01-30 15:22:01 +0000 |
commit | 31766927686edbc200d48cf4ce0c91e2f35fc7a3 (patch) | |
tree | d44f018db78efa2d8008c36e7c1da0b650775d10 | |
parent | 8ff01158b0dd0a0f4c31b6cc31b5ce6173be0a71 (diff) | |
download | enlightenment-31766927686edbc200d48cf4ce0c91e2f35fc7a3.tar.gz |
Tiling2: Remove the step restriction.
Enlightenment already enforces that, and using it makes things choppy.
-rw-r--r-- | src/modules/tiling2/e_mod_tiling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/tiling2/e_mod_tiling.c b/src/modules/tiling2/e_mod_tiling.c index c014ea8ff5..d62544c50f 100644 --- a/src/modules/tiling2/e_mod_tiling.c +++ b/src/modules/tiling2/e_mod_tiling.c @@ -695,11 +695,11 @@ static void _move_or_resize(E_Client *ec) { int w_dir = 1, h_dir = 1; double w_diff = 1.0, h_diff = 1.0; - if (abs(extra->expected.w - ec->w) >= MAX(ec->icccm.step_w, 1)) + if (abs(extra->expected.w - ec->w) >= 1) { w_diff = ((double) ec->w) / extra->expected.w; } - if (abs(extra->expected.h - ec->h) >= MAX(ec->icccm.step_h, 1)) + if (abs(extra->expected.h - ec->h) >= 1) { h_diff = ((double) ec->h) / extra->expected.h; } |