! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Weird tab behavior after reordering
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Evangelos Foutras 2018-03-15 07:38:12 CET
Created attachment 7636 
Silly screencast of the issue :P

If I open a new terminal window, create two new tabs, and then move the third tab before the second:

1) The order in the "Tabs" menu is not updated and shows incorrect Alt+<n> shortcuts for all but the first tab

and

2) If I click on the first tab and then on the second, right clicking does not bring up a context menu and any typed characters end up in the right-most tab!

Probably related to bug 14247 and/or its fix. I noticed this issue because right clicking would randomly stop working while I had several tabs open (and reordering them).
Comment 1 Git Bot editbugs 2018-03-15 14:04:52 CET
Igor referenced this bugreport in commit 61d9d0d58d53214bdedd2220fb3522c5440a6231

Fix handling of tabs reordering

https://git.xfce.org/apps/xfce4-terminal/commit?id=61d9d0d58d53214bdedd2220fb3522c5440a6231
Comment 2 Igor editbugs 2018-03-15 14:06:21 CET
Thanks, Evangelos!
Don't know why I did that change that broke the functionality. I've reverted it, and things seem to be fine now.
Comment 3 Evangelos Foutras 2018-03-15 14:53:15 CET
Can confirm that the order of the tabs remains correct upon reordering, thanks!

One cosmetic issue I notice is that, after moving the third tab over the second, the first tab will appear selected in the Tabs menu even though that is not the active tab. Perhaps this explains why you added the call to terminal_window_update_actions() in the fix for bug 14247?
Comment 4 Igor editbugs 2018-03-15 15:10:39 CET
Thanks! I think that really was the problem I tried to solve with that change.
I will look into it further and hopefully find a way how to update the active tab indication.
Comment 5 Git Bot editbugs 2018-03-15 15:24:25 CET
Igor referenced this bugreport in commit 9cfd52b8b5bd1321e2b6f497a41914c5bd06ded4

Update window actions and active tab indication on reordering tabs

https://git.xfce.org/apps/xfce4-terminal/commit?id=9cfd52b8b5bd1321e2b6f497a41914c5bd06ded4
Comment 6 Igor editbugs 2018-03-15 15:25:05 CET
Evangelos, could you please test the latest commit? Everything seems to be working fine for me.
Comment 7 Evangelos Foutras 2018-03-15 15:36:00 CET
Looks good here too, thanks Igor. 🎉
Comment 8 Igor editbugs 2018-03-15 15:54:49 CET
Thank you for reporting the problem!

Bug #14278

Reported by:
Evangelos Foutras
Reported on: 2018-03-15
Last modified on: 2018-03-15

People

CC List:
0 users

Version

Version:
0.8.7.1

Attachments

Silly screencast of the issue :P (184.47 KB, video/mp4)
2018-03-15 07:38 CET , Evangelos Foutras
no flags

Additional information