summaryrefslogtreecommitdiff
path: root/src/gui/gui.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.zig')
-rw-r--r--src/gui/gui.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig
index c3fdd63a..ead89a8a 100644
--- a/src/gui/gui.zig
+++ b/src/gui/gui.zig
@@ -4941,9 +4941,8 @@ fn waitInput(ctx: ?*anyopaque, timeout_ms: u32) void {
/// Detached: no window, asleep until the queue's wake (an SDL user event:
/// a pty's output, the daemon's window request), the core's next wake, or a
/// quit (SDL makes SIGTERM and SIGINT one). With nobody to dismiss them,
-/// messages go on the clock.
+/// messages go on the clock (the pump's, after this wait), which wakes it.
fn waitDetached(core: *pardes.Pardes, timeout_ms: u32) void {
- pardes.Messages.expireUnattended(core);
var ms: c_int = if (timeout_ms != 0) @intCast(@min(timeout_ms, std.math.maxInt(c_int))) else -1;
for (core.panes) |slot| if (slot) |pane| if (pane.msg_len > 0) {
ms = if (ms < 0) 100 else @min(ms, 100);