After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 763718 - DND'ing a single tab to itself closes it
DND'ing a single tab to itself closes it
Status: RESOLVED OBSOLETE
Product: gnome-terminal
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-03-15 20:51 UTC by Egmont Koblinger
Modified: 2021-06-10 21:05 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Egmont Koblinger 2016-03-15 20:51:56 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.
Comment 1 Christian Persch 2016-03-16 17:14:37 UTC
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.
Comment 2 Christian Persch 2016-06-12 12:48:03 UTC
Does adding a 

if (dest_window == source_window)
  return;

to terminal_window_move_screen() fix this?
Comment 3 Egmont Koblinger 2016-06-12 13:34:36 UTC
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.
Comment 4 GNOME Infrastructure Team 2021-06-10 21:05:44 UTC
-- 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.