gtk: update the window title when grabbing tab focus

pull/6890/head
Maciej Bartczak 2025-02-28 19:08:49 +01:00 committed by Mitchell Hashimoto
parent c9ca09af90
commit adf7c87cb2
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 4 additions and 0 deletions

View File

@ -596,6 +596,10 @@ pub fn focusCurrentTab(self: *Window) void {
const surface = tab.focus_child orelse return;
const gl_area = @as(*c.GtkWidget, @ptrCast(surface.gl_area));
_ = c.gtk_widget_grab_focus(gl_area);
if (surface.getTitle()) |title| {
self.setTitle(title);
}
}
pub fn onConfigReloaded(self: *Window) void {