diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-30 18:36:28 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-12-01 19:07:53 +0000 |
| commit | a3016a6cc909d9c383359a4eaafd30bcd52bd272 (patch) | |
| tree | 9d61d30392f9fa5fea0e3a9b144d2df2eb2b422b /input.h | |
| parent | input: always update the xcursor shape in pointer enter/motion events (diff) | |
osc-4: don’t update the color of cells with RGB fg/bg colors
OSC 4/104 changes the 256-color palette. We also run a pass over the
visible cells, and update their colors.
This was previously done by comparing the actual color of the cell,
with the “old” color in the palette. If they matched, the cell was
updated.
This meant that cells with an RGB color (i.e. not a palette based
color) was also updated, _if_ its color matched the palette color.
Now that each cell tracks its color *source*, we can ignore all
non-palette based cells.
Note that this still isn’t perfect: if the palette contains multiple
entries with the same color, we’ll end up updating the “wrong” cells.
Closes #678
Diffstat (limited to 'input.h')
0 files changed, 0 insertions, 0 deletions
