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

@@ -217,9 +217,9 @@ impl PanelItem {
let cursor = self.seat_data.cursor.lock();
if let Some(cursor) = cursor.as_ref().map(|cursor| cursor.lock()) {
if let Some(core_surface) = cursor.core_surface.upgrade() {
if let Some(mapped_data) = &*core_surface.mapped_data.lock() {
core_surface.with_data(|mapped_data| {
data = serialize((mapped_data.size, cursor.hotspot)).unwrap();
}
});
}
}