Rewrite action handling to allow multiple actions at once

This commit is contained in:
Consolatis 2022-01-05 09:11:24 +01:00 committed by Johan Malm
parent a54ce40e1c
commit 0b45cce648
12 changed files with 276 additions and 140 deletions

View file

@ -470,8 +470,7 @@ handle_release_mousebinding(struct view *view, struct server *server,
}
activated_any = true;
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
action(view, server, mousebind->action,
mousebind->command, resize_edges);
action(view, server, &mousebind->actions, resize_edges);
}
}
return activated_any && activated_any_frame;
@ -532,8 +531,7 @@ handle_press_mousebinding(struct view *view, struct server *server,
}
activated_any = true;
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
action(view, server, mousebind->action,
mousebind->command, resize_edges);
action(view, server, &mousebind->actions, resize_edges);
}
}
return activated_any && activated_any_frame;