action: fix menu position with "x"/"y" arguments in multi-monitor setup

Prior to this commit, output-relative coordinate was passed to
menu_open_root() as the menu position when it's designated via "x"/"y"
arguments in ShowMenu action, so menu can be misplaced to the output other
than the one in which the cursor is in.
This commit is contained in:
tokyo4j 2024-12-08 17:59:56 +09:00 committed by Johan Malm
parent 21bd5b0025
commit 5e422a0bc2
2 changed files with 12 additions and 10 deletions

View file

@ -397,6 +397,7 @@ struct output {
struct wlr_scene_tree *osd_tree;
struct wlr_scene_tree *session_lock_tree;
struct wlr_scene_buffer *workspace_osd;
/* In output-relative scene coordinates */
struct wlr_box usable_area;
struct wl_list regions; /* struct region.link */