From 0b1490e7ffae687ea29a1cd2c45d9051c3833a28 Mon Sep 17 00:00:00 2001 From: Hojjat Date: Tue, 24 Mar 2026 11:20:46 -0600 Subject: [PATCH] fix: use window-absolute coordinates for context menu position in split panes --- src/terminal_box.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/terminal_box.rs b/src/terminal_box.rs index 513cbf2..444a3b1 100644 --- a/src/terminal_box.rs +++ b/src/terminal_box.rs @@ -1300,8 +1300,12 @@ where None, ); let link = get_hyperlink(&terminal, location); + let abs = cosmic::iced::Point::new( + layout.bounds().x + p.x, + layout.bounds().y + p.y, + ); shell.publish(on_context_menu(Some(MenuState { - position: Some(p), + position: Some(abs), link, }))); }