Skip to content

Commit

Permalink
lib: fix compile error in event.b.v
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Nov 13, 2024
1 parent 9e0187c commit 0595606
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/event.b.v
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,12 @@ pub fn (mut e Events) send(ev Event) ! {
}
analyse.max('${@MOD}.${@STRUCT}.queue.len', e.queue.len + 1)
if e.state == .record {
window := e.shy.window(ev.window_id) or {
return error('${@STRUCT}.${@FN}: could not get window (${ev.window_id}): ${err}')
}
e.recorded << RecordedEvent{
event: ev
frame: e.shy.window(ev.window_id) or { 0 }.state.frame
frame: window.state.frame
}
}
if e.queue.len < e.queue.cap {
Expand Down

0 comments on commit 0595606

Please sign in to comment.