chore: add log to setTitle

This commit is contained in:
Raiden1411
2023-11-05 12:03:08 +00:00
parent d45415c8bf
commit aa62d78fc2

View File

@ -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);