diff options
Diffstat (limited to 'core/Kind.zig')
| -rw-r--r-- | core/Kind.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Kind.zig b/core/Kind.zig index 9844369d..2bf8e9fb 100644 --- a/core/Kind.zig +++ b/core/Kind.zig @@ -1253,9 +1253,12 @@ var ready: std.ArrayListUnmanaged(*host_io.KindJob) = .empty; /// A draw done on a worker, back on the loop: kept for its pane's next /// paint, a frame owed. One of another core's (a client joined again -/// since) is dropped: the new core's pane asked its own. +/// since), or of a pane closed since, is dropped: the new core's pane asked +/// its own. pub fn landDraw(p: *Pardes, j: *host_io.KindJob) void { if (j.draw != p) return j.drop(); + // Its pane closed meanwhile: no paint of it would ever take it. + if (if (p.panes[j.pane]) |pane| pane.serial != j.serial else true) return j.drop(); ready.append(heap, j) catch return j.drop(); p.needs_frame = true; } |
