seat: handle surface cursor lifetimes explicitly
This commit is contained in:
parent
566a05494a
commit
be0935c8dd
4 changed files with 6 additions and 1 deletions
|
|
@ -123,6 +123,10 @@ impl Cursor for CursorSurface {
|
|||
self.surface.set_output(output);
|
||||
}
|
||||
|
||||
fn handle_set(self: Rc<Self>) {
|
||||
self.surface.cursors.insert(self.seat.id(), self.clone());
|
||||
}
|
||||
|
||||
fn handle_unset(&self) {
|
||||
self.surface.cursors.remove(&self.seat.id());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue