fix: use window-absolute coordinates for context menu position in split panes
This commit is contained in:
parent
0575680860
commit
0b1490e7ff
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
})));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue