macos: set the proper app focus state

This commit is contained in:
Mitchell Hashimoto
2024-10-06 10:06:07 -10:00
parent 8dc4ebb4f7
commit e56cfbdc8b
2 changed files with 35 additions and 12 deletions

View File

@@ -288,6 +288,7 @@ pub fn setQuit(self: *App) !void {
/// This is separate from surface focus events. See the `focused`
/// field for more information.
pub fn focusEvent(self: *App, focused: bool) void {
log.debug("focus event focused={}", .{focused});
self.focused = focused;
}