aboutsummaryrefslogtreecommitdiff
path: root/render/wlr_renderer.c
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-09-17 01:27:43 -0400
committerAlexander Orzechowski <alex@ozal.ski>2023-10-02 06:08:10 +0000
commit00dcc68e16bce6d581355eac4156d89422c3ff64 (patch)
tree6bccb66b1aed0a475f1e1190b88b29d0e080cfc1 /render/wlr_renderer.c
parent9816b59b0e89a4c2a327e4001f3e96248b3dba0a (diff)
cursor: Unset cursor image when there is not available xcursor theme
This fixes a crash in the case where the last cursor was a client surface cursor but then transitioned into a server managed xcursor that isn't available. Because the logic would return early before, we would continue to reference a texture pointer belonging to a client surface but would otherwise disassociate with it (we wouldn't clear the cursor if the surface is destroyed) resulting an an eventual UAF. Let's just make the cursor invisible if we don't know what to show. It's compositor policy if they want to show a default. Co-authored-by: Scott Moreau <oreaus@gmail.com> Fixes: #3686
Diffstat (limited to 'render/wlr_renderer.c')
0 files changed, 0 insertions, 0 deletions