From 04d3e1ed590feb774d08968d0e90930f081b40b5 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 12 Nov 2025 13:36:00 -0500 Subject: [PATCH] fix(popup): avoid panic when None cosmic-comp panics here after launching an app from the app tray overflow popup. While it may indicate a panel issue that I also need to look into, it seems to work fine if we don't unwrap on this option. --- src/wayland/handlers/xdg_shell/popup.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wayland/handlers/xdg_shell/popup.rs b/src/wayland/handlers/xdg_shell/popup.rs index 0e3ca699..d10dba8a 100644 --- a/src/wayland/handlers/xdg_shell/popup.rs +++ b/src/wayland/handlers/xdg_shell/popup.rs @@ -186,8 +186,7 @@ pub fn get_popup_toplevel(popup: &PopupSurface) -> Option { .parent .as_ref() .cloned() - .unwrap() - }); + })?; } Some(parent) }