this repo has no description
13
fork

Configure Feed

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

windows(Loop): implement mouse and focus handling

Implement mouse and focus events in windows. Thanks @neurocyte for
locating this.

Fixes: #159

+15 -1
+15 -1
src/Loop.zig
··· 199 199 .cap_da1 => { 200 200 std.Thread.Futex.wake(&vx.query_futex, 10); 201 201 }, 202 - .mouse => {}, // Unsupported currently 202 + .mouse => |mouse| { 203 + if (@hasField(Event, "mouse")) { 204 + return self.postEvent(.{ .mouse = vx.translateMouse(mouse) }); 205 + } 206 + }, 207 + .focus_in => { 208 + if (@hasField(Event, "focus_in")) { 209 + return self.postEvent(.focus_in); 210 + } 211 + }, 212 + .focus_out => { 213 + if (@hasField(Event, "focus_out")) { 214 + return self.postEvent(.focus_out); 215 + } 216 + }, // Unsupported currently 203 217 else => {}, 204 218 } 205 219 },