diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-08 17:52:17 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-08 17:52:17 +0000 |
| commit | d377221e247f67f7b5e6363f81ae2268e16aa32d (patch) | |
| tree | ffb13a52c379fd8b511a1928c5fe581b6b66d176 /render.c | |
| parent | wayland: seat: log keyboard/pointer capability (diff) | |
xcursor: trigger theme reload in pointer-enter event
Previously, we triggered a theme reload on output changes. This is
completely wrong. We may get a new output with a scale different from
the output the pointer is actually on.
Now, we store the current scale along with the theme. We then trigger
a call to reload the xcursor theme *every* time the pointer enters a
surface. When it does, we use the current scale factor of the terminal
that owns that surface.
If the terminal covers multiple outputs, with different scale factors,
we'll use the largest scale factor. This may not be 100% correct. But
to fix that, we'd need to track which regions of a surface are mapped
on which outputs. Too complicated I say.
Diffstat (limited to 'render.c')
0 files changed, 0 insertions, 0 deletions
