unclutter: fix a rare crash when last_cursor points to freed memory

I couldn't reproduce this, but this is also what mangowm does.

Fixes https://codeberg.org/dwl/dwl-patches/issues/675

Co-authored-by: Kaon <uriel@tuta.com>
This commit is contained in:
Guido Cella
2026-10-04 22:51:24 +02:00
co-authored by Kaon
parent de72d2bb3c
commit 20598d28dc
2 changed files with 127 additions and 103 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ Hide the mouse cursor if it isn't being used for a certain period of time.
### Download
- [git branch](https://codeberg.org/guidocella/dwl/src/branch/unclutter)
- [2026-09-26](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/unclutter/unclutter.patch)
- [2026-10-04](https://codeberg.org/dwl/dwl-patches/raw/branch/main/patches/unclutter/unclutter.patch)
### Authors
- [Guido Cella](https://github.com/guidocella)