Tabs disappear on certain drag and drop targets under GTK #4599
Replies: 4 comments 2 replies
-
|
To give some more info, I tried this on a floating wm and could not replicate it, Kat was able to replicate also using a tiling wm View discord thread for some more info |
Beta Was this translation helpful? Give feedback.
-
|
https://docs.gtk.org/gtk4/class.Notebook.html and src/apprt/gtk/notebook.zig for looking into it. Will spend some time looking at it. |
Beta Was this translation helpful? Give feedback.
-
|
@rhodes-b - are you on adwaita? I noticed that there's GTK Notebook and then there's Adwaita TabView. |
Beta Was this translation helpful? Give feedback.
-
|
I don't really see many knobs to turn in order to change the behavior of Adwaita tabviews. GTK has some, but its behavior is also bugged up / I see nothing there that would cause inconsistent handling of tabs dragged and dropped onto different sorts of targets. The last thing I was going to try was looking for https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/signal.TabView.close-page.html events, and seeing if we get close-pages for tabs that get orphaned - but can't get this event to log - maybe because the signature is wrong without a gpointer return. Regardless, this is probably a waste of time. Seems like it might be reasonable to throw it on adwaita's issue tracker... other ideas? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
GTK Linux Builds - dragging a tab from a ghostty window to 'zed', or 'brave-browser' as a target makes the dragged tab disappear. Process associated with the tab stays active. The contributing window shows buggy behavior. For example, with a two tab window, you would expect a dragged tab would lead to two single tab windows without a visible tab bar. When dropping on zed the tab-bar remains with only a single tab in it.
Other targets, like dragging onto pcmanfm or sublime text, will create a new ghostty window with that tab.
Dragging and dropping between ghostty windows works as expected, moving a tab from one window to the next.
Beta Was this translation helpful? Give feedback.
All reactions