diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 00:52:01 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 01:27:20 -0300 |
| commit | e19bdc79f0cc6e8521085c69ba6e22da24fce8a4 (patch) | |
| tree | 4418980e403260983ccf3903b1eb7f306c2fe120 /src/gui/gui.zig | |
| parent | d2a066ea4ffe4388fe0da71bd8389649ac59b73f (diff) | |
| download | pardes-e19bdc79f0cc6e8521085c69ba6e22da24fce8a4.tar.gz pardes-e19bdc79f0cc6e8521085c69ba6e22da24fce8a4.zip | |
file_watch: every pane's watch is dropped by one call (unwatchAll), where the tty's Restore, the window's Restore and a tty test each wrote the same eight-line loop over every pane
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/gui/gui.zig')
| -rw-r--r-- | src/gui/gui.zig | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 711f0657..95df9fac 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -2544,14 +2544,7 @@ fn localSession( shell.gview = 0; shell.windowed = 1; shell.stopPtys(); - for (0..pardes.MAX_PANES) |wid| file_watch.watchPane( - inotify_fd, - &watches, - @intCast(wid), - null, - 0, - .{ .text = 0 }, - ); + file_watch.unwatchAll(inotify_fd, &watches); _ = file_watch.applyThemeEffect(core, gpa, inotify_fd, &watches, 0, false, false); clearNativeImages(g); g.presented_images.clearRetainingCapacity(); |
