Merge pull request #3390 from RedSoxFan/execute-seat

cmd_bind: pass the seat to execute_command
This commit is contained in:
emersion 2019-01-09 09:59:09 +01:00 committed by GitHub
commit 8daea2bfec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -312,8 +312,7 @@ struct cmd_results *cmd_bindcode(int argc, char **argv) {
void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding) {
wlr_log(WLR_DEBUG, "running command for binding: %s", binding->command);
config->handler_context.seat = seat;
list_t *res_list = execute_command(binding->command, NULL, NULL);
list_t *res_list = execute_command(binding->command, seat, NULL);
bool success = true;
for (int i = 0; i < res_list->length; ++i) {
struct cmd_results *results = res_list->items[i];