refactor: cleanup

This commit is contained in:
Nova
2024-07-28 06:14:02 -04:00
parent c09afba366
commit 98a6ad6f32
3 changed files with 55 additions and 29 deletions

View File

@@ -90,8 +90,7 @@ impl CompositorHandler for WaylandState {
return;
};
let mut changed = false;
surf.get_data_raw::<Mutex<ChildInfo>, _, _>(|c| {
let mut info = c.lock();
surf.with_child_info(|info| {
if info.geometry.origin.x != view.offset.x
&& info.geometry.origin.y != view.offset.y
{