gtk: set tab group so that tabs can be dropped onto other windows

Related to #1122
pull/1823/head
Mitchell Hashimoto 2024-06-03 16:21:50 -07:00
parent 4bcc8b998c
commit 29b3f9d528
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ pub fn init(self: *Window, app: *App) !void {
c.gtk_notebook_set_show_tabs(notebook, 0);
c.gtk_notebook_set_show_border(notebook, 0);
// This enables all Ghostty terminal tabs to be exchanged across windows.
c.gtk_notebook_set_group_name(notebook, "ghostty-terminal-tabs");
// This is important so the notebook expands to fit available space.
// Otherwise, it will be zero/zero in the box below.
c.gtk_widget_set_vexpand(notebook_widget, 1);