billiob pushed a commit to branch master. http://git.enlightenment.org/apps/terminology.git/commit/?id=2316b92d674c2e0b3e7583d7f41d377b0b5f9d01
commit 2316b92d674c2e0b3e7583d7f41d377b0b5f9d01 Author: Boris Faure <[email protected]> Date: Sat Feb 15 22:33:51 2020 +0100 win: reinsert the tab when the mouse is --- src/bin/win.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bin/win.c b/src/bin/win.c index 1439e48..bf14dd4 100644 --- a/src/bin/win.c +++ b/src/bin/win.c @@ -3036,7 +3036,8 @@ _term_on_horizontal_drag(void *data, &v2, NULL); while ((tab_active_idx < n - 1) && ((v2 > tabs->v2_orig + tabs->hysteresis_step) || - (v2 > 1 - tabs->hysteresis_step))) + (v2 > 1.0 - tabs->hysteresis_step) || + ((v1 == v2) && (v2 > tabs->v2_orig)))) { /* To the right */ l = eina_list_nth_list(tabs->tabs, tab_active_idx); @@ -3057,7 +3058,9 @@ _term_on_horizontal_drag(void *data, } while ((tab_active_idx > 0) && ((v1 < tabs->v1_orig - tabs->hysteresis_step) || - (v1 < tabs->hysteresis_step))) + (v1 < tabs->hysteresis_step) || + (v2 >= tabs->v2_orig) || + ((v1 == v2) && v1 < tabs->v1_orig))) { /* To the left */ l = eina_list_nth_list(tabs->tabs, tab_active_idx); @@ -3073,8 +3076,6 @@ _term_on_horizontal_drag(void *data, l); _tabs_recompute_drag(tabs); tab_active_idx--; - if (v1 >= tabs->v1_orig) - return; } } --
