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:
parent
37ffa86043
commit
6a6dbe3aa1
8 changed files with 174 additions and 20 deletions
|
@ -10,8 +10,8 @@ use collections::HashMap;
|
|||
use crate::platform::linux::client::Client;
|
||||
use crate::platform::{LinuxPlatformInner, PlatformWindow};
|
||||
use crate::{
|
||||
AnyWindowHandle, Bounds, DisplayId, PlatformDisplay, PlatformInput, Point, ScrollDelta, Size,
|
||||
TouchPhase, WindowOptions,
|
||||
AnyWindowHandle, Bounds, CursorStyle, DisplayId, PlatformDisplay, PlatformInput, Point,
|
||||
ScrollDelta, Size, TouchPhase, WindowOptions,
|
||||
};
|
||||
|
||||
use super::{X11Display, X11Window, X11WindowState, XcbAtoms};
|
||||
|
@ -351,6 +351,9 @@ impl Client for X11Client {
|
|||
self.state.borrow_mut().windows.insert(x_window, window_ref);
|
||||
Box::new(X11Window(window_ptr))
|
||||
}
|
||||
|
||||
//todo!(linux)
|
||||
fn set_cursor_style(&self, _style: CursorStyle) {}
|
||||
}
|
||||
|
||||
// Adatpted from:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue