feat(wayland): add ability to hide the cursor over a surface

also now the surfaces say what the cursor over them should look like,
previously one cursor shape was selected globally for the seat
This commit is contained in:
Hojjat 2026-08-27 19:26:19 -06:00 • committed by Ashley Wulber
parent 65e9faa43c
commit aca94cf2af
7 changed files with 111 additions and 9 deletions

View file

@ -291,11 +291,11 @@ where
pub fn update_mouse(&mut self, interaction: mouse::Interaction) {
if interaction != self.mouse_interaction {
if let Some(icon) = conversion::mouse_interaction(interaction) {
self.raw.set_cursor(icon.into());
if self.mouse_interaction == mouse::Interaction::Hidden {
self.raw.set_cursor_visible(true);
}
self.raw.set_cursor(icon.into());
} else {
self.raw.set_cursor_visible(false);
}