diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-28 15:50:55 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:15 -0300 |
| commit | 7f179dc4d02cb726194dd73ea316230683f26494 (patch) | |
| tree | 1ef18a733d4a0a8d466b32c9c4d044bfbe4d9c8b /src/gui/gui.zig | |
| parent | cd6ce6c2b3015c776644fb3866280f5dfd03addc (diff) | |
| download | pardes-7f179dc4d02cb726194dd73ea316230683f26494.tar.gz pardes-7f179dc4d02cb726194dd73ea316230683f26494.zip | |
While anything moves, a notice stays in its own pane's group
Generalises vowtymmr (review): a pane sliding, zooming or opening over a
neighbour covers that neighbour's notice as a closing one does. Tier 4
holds notices only while nothing moves.
Shared files touched: gui.zig.
Diffstat (limited to 'src/gui/gui.zig')
| -rw-r--r-- | src/gui/gui.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 39d7f61e..2cde5edf 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -2075,11 +2075,11 @@ fn groupOf(groups: *const Groups, serial: u32) usize { return 0; } -/// A notice floats over the panes (tier 4), except while a pane closes: then -/// it stays in its own pane's group, under the tombstone sliding over it. +/// A notice floats over the panes and its pane's picture (tier 4) while +/// nothing moves; while anything does it stays in its own pane's group, under +/// whatever pane slides, opens or closes over it. fn noticeGroup(groups: *const Groups, layer: *const pardes.Layer) usize { - for (groups.items[1..][0..groups.tracks]) |group| - if (group.track.?.phase == .closing) return groupAt(groups, layer.viewport.x, layer.viewport.y); + if (groups.tracks > 0) return groupAt(groups, layer.viewport.x, layer.viewport.y); return groups.notices; } |
