diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-25 17:57:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-25 17:57:18 +0000 |
| commit | b4f666118febfc95bf97e31aa1e39e3df9522dfa (patch) | |
| tree | bd74ce90720d1e57b9fb9f115f6758bf500fe818 /selection.c | |
| parent | input: assert serial received from compositor is non-zero (diff) | |
grid: add abs-to-sb and sb-to-abs utility function
These functions convert row numbers between absolute coordinates and
“scrollback relative” coordinates.
Absolute row numbers can be used to index into the grid->rows[] array.
Scrollback relative numbers are ordered with the *oldest* row first,
and the *newest* row last. That is, in these coordinates, row 0 is the
*first* (oldest) row in the scrollback history, and row N is the
*last* (newest) row.
Scrollback relative numbers are used when we need to sort things after
their age, when determining if something has scrolled out, or when
limiting an operation to ensure we don’t go past the scrollback
wrap-around.
Diffstat (limited to 'selection.c')
0 files changed, 0 insertions, 0 deletions
