1
0
Fork 0
forked from wry/wry

it: test cursor-shape protocol

This commit is contained in:
Julian Orth 2024-04-02 20:06:13 +02:00
parent 9c8131e145
commit 6448a14fb1
10 changed files with 154 additions and 2 deletions

View file

@ -909,6 +909,11 @@ impl WlSeatGlobal {
}
}
#[cfg_attr(not(feature = "it"), allow(dead_code))]
pub fn get_desired_known_cursor(&self) -> Option<KnownCursor> {
self.desired_known_cursor.get()
}
pub fn set_known_cursor(&self, cursor: KnownCursor) {
self.desired_known_cursor.set(Some(cursor));
let cursors = match self.state.cursors.get() {