feat: render named cursor images

This commit is contained in:
Samuel Onoja committed 2026-09-25 00:53:48 +01:00
1 parent 37eb7cb9e9
commit df884cb623
8 files changed
+239 -31

No files matched your search

+5
View File
@@ -45,6 +45,11 @@ impl SeatHandler for Ferese {
}
fn cursor_image(&mut self, _seat: &Seat<Self>, image: CursorImageStatus) {
if let CursorImageStatus::Named(icon) = &image {
self.named_cursors
.entry(*icon)
.or_insert_with(|| crate::cursor::load_named_cursor(&self.cursor_theme, *icon));
}
self.cursor_status = image;
crate::backends::direct::render_all(self);
}