From 6cba9a010fa661dd72531d14ed0b95bb102f940c Mon Sep 17 00:00:00 2001 From: Nova Date: Fri, 14 Oct 2022 05:20:30 -0400 Subject: [PATCH] fix(panel item): serialize properly --- src/wayland/panel_item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/panel_item.rs b/src/wayland/panel_item.rs index ccc43e2..980892f 100644 --- a/src/wayland/panel_item.rs +++ b/src/wayland/panel_item.rs @@ -493,7 +493,7 @@ impl ItemSpecialization for PanelItem { .and_then(|surf| surf.with_data(|data| data.size)); let cursor_hotspot = cursor_lock.map(|cursor| cursor.lock().hotspot); - serialize((id, (panel_size, cursor_size, cursor_hotspot))).unwrap() + serialize((id, (panel_size, cursor_size.zip(cursor_hotspot)))).unwrap() } }