fix: use window-absolute coordinates for context menu position in split panes

This commit is contained in:
Hojjat 2026-03-24 11:20:46 -06:00 committed by Ashley Wulber
parent 0575680860
commit 0b1490e7ff

View file

@ -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,
})));
}