feat: compose client cursor surfaces
This commit is contained in:
1 parent
bf10a2f838
commit
ee9da5d8c9
5 files changed
+105
-49
No files matched your search
@@ -50,10 +50,10 @@ impl CompositorHandler for Ferese {
|
||||
if let Some(window) = window {
|
||||
window.on_commit();
|
||||
self.record_client_commit(&window);
|
||||
crate::backends::direct::render_all(self);
|
||||
}
|
||||
}
|
||||
xdg_shell::handle_commit(&mut self.popups, &mut self.space, surface);
|
||||
crate::backends::direct::render_all(self);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,10 @@ impl SeatHandler for Ferese {
|
||||
&mut self.seat_state
|
||||
}
|
||||
|
||||
fn cursor_image(&mut self, _seat: &Seat<Self>, _image: CursorImageStatus) {}
|
||||
fn cursor_image(&mut self, _seat: &Seat<Self>, image: CursorImageStatus) {
|
||||
self.cursor_status = image;
|
||||
crate::backends::direct::render_all(self);
|
||||
}
|
||||
|
||||
fn focus_changed(&mut self, seat: &Seat<Self>, focused: Option<&WlSurface>) {
|
||||
let client = focused.and_then(|surface| self.display_handle.get_client(surface.id()).ok());
|
||||
|
||||
Reference in new issue
Block a user