summaryrefslogtreecommitdiff
path: root/src/modules/tiling
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2012-12-24 11:12:56 +0000
committerBoris Faure <billiob@gmail.com>2012-12-24 11:12:56 +0000
commit69165855cd881f6f4fb499c621f8d81c89ed1c58 (patch)
treeb6c55442b06edfcebb7f0c15b4996d4a7769caa2 /src/modules/tiling
parent773454898ddbfdc36244a21cde1729c53430024a (diff)
downloadenlightenment-69165855cd881f6f4fb499c621f8d81c89ed1c58.tar.gz
e:tiling: Corrected off-by-one error that was causing a SIGFPE when moving the last window in a stack to the left.
SVN revision: 81677
Diffstat (limited to 'src/modules/tiling')
-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 bfcc1b23f2..4c671f7d67 100644
--- a/src/modules/tiling/e_mod_tiling.c
+++ b/src/modules/tiling/e_mod_tiling.c
@@ -2202,7 +2202,7 @@ _move_left_cols(E_Border *bd, Eina_Bool check_moving_anims)
for (i = 0; i < nb_stacks; i++) {
int width;
- width = w / (nb_stacks - 1 - i);
+ width = w / (nb_stacks - i);
_set_stack_geometry(i, x, width);
@@ -2534,7 +2534,7 @@ _move_up_rows(E_Border *bd, Eina_Bool check_moving_anims)
for (i = 0; i < nb_stacks; i++) {
int height;
- height = h / (nb_stacks - 1 - i);
+ height = h / (nb_stacks - i);
_set_stack_geometry(i, y, height);