From b2cae92239d9b926557cff013ffebf3962a5d6ba Mon Sep 17 00:00:00 2001 From: Nova Date: Thu, 1 Sep 2022 19:42:13 -0400 Subject: [PATCH] fix(panel item): don't add to server internal client scenegraph --- src/wayland/panel_item.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wayland/panel_item.rs b/src/wayland/panel_item.rs index 5755656..341ed0d 100644 --- a/src/wayland/panel_item.rs +++ b/src/wayland/panel_item.rs @@ -72,8 +72,12 @@ impl PanelItem { data: &UserDataMap, toplevel_surface: WlSurface, ) -> Arc { - let node = Node::create(&INTERNAL_CLIENT, "/item/panel/item", &nanoid!(), true) - .add_to_scenegraph(); + let node = Arc::new(Node::create( + &INTERNAL_CLIENT, + "/item/panel/item", + &nanoid!(), + true, + )); Spatial::add_to(&node, None, Mat4::IDENTITY).unwrap(); let seat_data = SeatData::new(toplevel_surface.client_id().unwrap());