feat: compose client cursor surfaces

This commit is contained in:
Samuel Onoja committed 2026-09-24 16:42:50 +01:00
1 parent bf10a2f838
commit ee9da5d8c9
5 files changed
+105 -49

No files matched your search

+1 -1
View File
@@ -50,10 +50,10 @@ impl CompositorHandler for Ferese {
if let Some(window) = window {
window.on_commit();
self.record_client_commit(&window);
crate::backends::direct::render_all(self);
}
}
xdg_shell::handle_commit(&mut self.popups, &mut self.space, surface);
crate::backends::direct::render_all(self);
}
}
+4 -1
View File
@@ -40,7 +40,10 @@ impl SeatHandler for Ferese {
&mut self.seat_state
}
fn cursor_image(&mut self, _seat: &Seat<Self>, _image: CursorImageStatus) {}
fn cursor_image(&mut self, _seat: &Seat<Self>, image: CursorImageStatus) {
self.cursor_status = image;
crate::backends::direct::render_all(self);
}
fn focus_changed(&mut self, seat: &Seat<Self>, focused: Option<&WlSurface>) {
let client = focused.and_then(|surface| self.display_handle.get_client(surface.id()).ok());