mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
src/menu: Attach view to menu and use it when executing actions
This fixes #380
This commit is contained in:
parent
ca9226a7a6
commit
5a4c5de332
5 changed files with 63 additions and 30 deletions
|
|
@ -121,6 +121,8 @@ show_menu(struct server *server, struct view *view, const char *menu_name)
|
|||
x = server->seat.cursor->x;
|
||||
y = server->seat.cursor->y;
|
||||
}
|
||||
/* Replaced by next show_menu() or cleaned on view_destroy() */
|
||||
menu->triggered_by_view = view;
|
||||
menu_open(menu, x, y);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue