mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-18 21:40:29 +00:00
apprt/gtk: report proper app focus state
This commit is contained in:
@@ -288,6 +288,9 @@ 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 {
|
||||
// Prevent redundant focus events
|
||||
if (self.focused == focused) return;
|
||||
|
||||
log.debug("focus event focused={}", .{focused});
|
||||
self.focused = focused;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user