From 133c526acd12e50f4ff53228986c7011f931455f Mon Sep 17 00:00:00 2001 From: Hojjat Date: Tue, 24 Mar 2026 11:20:56 -0600 Subject: [PATCH] fix: dismiss context menu when clicking in any pane --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index ac276a3..60bcecd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3352,11 +3352,8 @@ impl Application for App { // If a context menu popup is active for this pane, inform the // terminal_box so it will emit on_context_menu(None) on click // to dismiss the popup. - if let Some((_, popup_pane, _, _, _)) = &self.context_menu_popup { - if pane == *popup_pane { - terminal_box = - terminal_box.context_menu(cosmic::iced::Point::ORIGIN); - } + if self.context_menu_popup.is_some() { + terminal_box = terminal_box.context_menu(cosmic::iced::Point::ORIGIN); } let tab_element: Element<'_, Message> = terminal_box.into();