implement Resize as an action

this requires action() to know the resize edges to use, so thread them through
This commit is contained in:
bi4k8 2021-12-01 02:38:53 +00:00 committed by Johan Malm
parent 8eab1e8132
commit 031ced85ef
5 changed files with 24 additions and 13 deletions

View file

@ -416,7 +416,7 @@ menu_action_selected(struct server *server, struct menu *menu)
struct menuitem *menuitem;
wl_list_for_each (menuitem, &menu->menuitems, link) {
if (menuitem->selected && !menuitem->submenu) {
action(server, menuitem->action, menuitem->command);
action(server, menuitem->action, menuitem->command, 0);
break;
}
if (menuitem->submenu) {