GNOME Bugzilla – Bug 763718
DND'ing a single tab to itself closes it
Last modified: 2021-06-10 21:05:44 UTC
Have a g-t window with a single tab and a tab bar (requires "tab-policy: always"). Drag it, and drop it on top itself (either on the tab bar, or on the terminal). The terminal closes. Interestingly it does not crash; it closes cleanly without effecting the rest of g-t. Still, it shouldn't do this.
Hmm. I guess what happens is that instead of doing a tab reordering, gtk is doing a remove+insert tab, and the remove closes the window since it was the last tab. If so, I'd say that is a gtk bug in GtkNotebook.
Does adding a if (dest_window == source_window) return; to terminal_window_move_screen() fix this?
If I drop on the terminal area then yup it fixes this (althought the height shrinks during this operation). If I drop on the tab bar then nope, the terminal still disappears.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/7653.