gtk: update the window title when grabbing tab focus

This commit is contained in:
Maciej Bartczak
2025-02-28 19:08:49 +01:00
committed by Mitchell Hashimoto
parent c9ca09af90
commit adf7c87cb2

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 {