all: implement hardware cursors
This commit is contained in:
parent
6cc97ee56e
commit
3b8935cf55
23 changed files with 614 additions and 91 deletions
|
|
@ -804,9 +804,6 @@ impl WlSurface {
|
|||
}
|
||||
self.buffer_abs_pos
|
||||
.set(self.buffer_abs_pos.get().with_size(width, height).unwrap());
|
||||
for (_, cursor) in &self.cursors {
|
||||
cursor.handle_buffer_change();
|
||||
}
|
||||
}
|
||||
{
|
||||
let mut pfr = self.pending.frame_request.borrow_mut();
|
||||
|
|
@ -832,6 +829,11 @@ impl WlSurface {
|
|||
if self.need_extents_update.get() {
|
||||
self.calculate_extents();
|
||||
}
|
||||
if buffer_transform_changed || transform_changed {
|
||||
for (_, cursor) in &self.cursors {
|
||||
cursor.handle_buffer_change();
|
||||
}
|
||||
}
|
||||
ext.post_commit();
|
||||
self.client.state.damage();
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue