mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
gtk: update the window title when grabbing tab focus
This commit is contained in:

committed by
Mitchell Hashimoto

parent
c9ca09af90
commit
adf7c87cb2
@ -596,6 +596,10 @@ pub fn focusCurrentTab(self: *Window) void {
|
|||||||
const surface = tab.focus_child orelse return;
|
const surface = tab.focus_child orelse return;
|
||||||
const gl_area = @as(*c.GtkWidget, @ptrCast(surface.gl_area));
|
const gl_area = @as(*c.GtkWidget, @ptrCast(surface.gl_area));
|
||||||
_ = c.gtk_widget_grab_focus(gl_area);
|
_ = c.gtk_widget_grab_focus(gl_area);
|
||||||
|
|
||||||
|
if (surface.getTitle()) |title| {
|
||||||
|
self.setTitle(title);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn onConfigReloaded(self: *Window) void {
|
pub fn onConfigReloaded(self: *Window) void {
|
||||||
|
Reference in New Issue
Block a user