mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
chore: add log to setTitle
This commit is contained in:
@ -670,6 +670,7 @@ pub fn handleMessage(self: *Surface, msg: Message) !void {
|
|||||||
// The ptrCast just gets sliceTo to return the proper type.
|
// The ptrCast just gets sliceTo to return the proper type.
|
||||||
// We know that our title should end in 0.
|
// We know that our title should end in 0.
|
||||||
if (self.config.title) |title| {
|
if (self.config.title) |title| {
|
||||||
|
log.debug("setting title \"{s}\"", .{title});
|
||||||
try self.rt_surface.setTitle(title);
|
try self.rt_surface.setTitle(title);
|
||||||
} else {
|
} else {
|
||||||
const slice = std.mem.sliceTo(@as([*:0]const u8, @ptrCast(v)), 0);
|
const slice = std.mem.sliceTo(@as([*:0]const u8, @ptrCast(v)), 0);
|
||||||
|
Reference in New Issue
Block a user