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
This commit is contained in:
parent
773454898d
commit
69165855cd
1
AUTHORS
1
AUTHORS
|
@ -47,3 +47,4 @@ Samuel Mendes <heka.lok@gmail.com>
|
|||
Michael Stapelberg <michael+e17@stapelberg.de>
|
||||
Stefan Sperling <stsp@openbsd.org>
|
||||
Nicolas Beaumont <nicolas.beaumont@gmail.com>
|
||||
David H. Bronke <whitelynx@gmail.com>
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue