refactor(wayland): make code cleaner

This commit is contained in:
Nova
2022-11-12 11:53:11 -05:00
parent 8c36d73775
commit 83a5b36ddc
3 changed files with 6 additions and 6 deletions

View File

@@ -209,9 +209,9 @@ impl Dispatch<WlPointer, SeatData, WaylandState> for SeatDelegate {
hotspot_x,
hotspot_y,
} => {
if !*seat_data.pointer_active.lock() {
return;
}
// if !seat_data.pointer_active() {
// return;
// }
*seat_data.0.cursor_changed.lock() = true;
if let Some(surface) = surface.as_ref() {
compositor::with_states(surface, |data| {