this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

vxfw: send focus_in and focus_out commands explicitly

+9 -1
+9 -1
src/vxfw/App.zig
··· 57 57 58 58 // Send the init event 59 59 loop.postEvent(.init); 60 + // Also always initialize the app with a focus event 61 + loop.postEvent(.focus_in); 60 62 61 63 try vx.enterAltScreen(tty.anyWriter()); 62 64 try vx.queryTerminal(tty.anyWriter(), 1 * std.time.ns_per_s); ··· 127 129 try focus_handler.handleEvent(&ctx, event); 128 130 try self.handleCommand(&ctx.cmds); 129 131 }, 130 - .focus_out => try mouse_handler.mouseExit(self, &ctx), 132 + .focus_out => { 133 + try mouse_handler.mouseExit(self, &ctx); 134 + try focus_handler.handleEvent(&ctx, .focus_out); 135 + }, 136 + .focus_in => { 137 + try focus_handler.handleEvent(&ctx, .focus_in); 138 + }, 131 139 .mouse => |mouse| try mouse_handler.handleMouse(self, &ctx, mouse), 132 140 .winsize => |ws| { 133 141 try vx.resize(self.allocator, tty.anyWriter(), ws);