diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-02-29 06:49:08 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-02-29 07:16:20 +0000 |
| commit | 6fd533ce138bbb2d026da8175353feb493b12b47 (patch) | |
| tree | 94dfc395b9e89f3af1f148458dd3c09c3524044b /cursor-shape.h | |
| parent | ci: run x86+x64 builds in parallel (diff) | |
render: don't try to set a NULL xcursor image
render_xcursor_update() is called when we've loaded a new xcursor
image, and needs to display it. The reason it's not pushed to the
compositor immediately is to ensure we don't flood the Wayland socket
with xcursor updates.
Normally, it's only called when we *succeed* to load a new xcursor
image. I.e. if we try to load a non-existing xcursor image, we never
schedule an update.
However, we _can_ still end up in render_xcursor_update() without a
valid xcursor image. For example, we have loaded a valid xcursor
image, and scheduled an update. But before the update runs, the user
moves the cursor, and we try to load a new xcursor image. If it fails,
we crash when the previously scheduled update finally runs.
Closes #1624
Diffstat (limited to 'cursor-shape.h')
0 files changed, 0 insertions, 0 deletions
