linux: wayland: implement cursor style handling (#8632)

Release Notes:

- Implemented cursor style changing in wayland


[zed_cursor_wayland.webm](https://github.com/zed-industries/zed/assets/12579216/cbc03f85-41c1-4687-88b5-2aa5612d7129)

---------

Co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Joel Selvaraj 2024-03-03 13:28:20 -06:00 committed by GitHub
parent 37ffa86043
commit 6a6dbe3aa1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 174 additions and 20 deletions

View file

@ -1,7 +1,7 @@
use std::rc::Rc;
use crate::platform::PlatformWindow;
use crate::{AnyWindowHandle, DisplayId, PlatformDisplay, WindowOptions};
use crate::{AnyWindowHandle, CursorStyle, DisplayId, PlatformDisplay, WindowOptions};
pub trait Client {
fn displays(&self) -> Vec<Rc<dyn PlatformDisplay>>;
@ -11,4 +11,5 @@ pub trait Client {
handle: AnyWindowHandle,
options: WindowOptions,
) -> Box<dyn PlatformWindow>;
fn set_cursor_style(&self, style: CursorStyle);
}