|
|
@ -236,15 +236,15 @@ list_t *execute_command(char *_exec, struct sway_seat *seat,
|
|
|
|
criteria_destroy(criteria);
|
|
|
|
criteria_destroy(criteria);
|
|
|
|
config->handler_context.using_criteria = true;
|
|
|
|
config->handler_context.using_criteria = true;
|
|
|
|
// Skip leading whitespace
|
|
|
|
// Skip leading whitespace
|
|
|
|
head += strspn(head, whitespace);
|
|
|
|
for (; isspace(*head); ++head) {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Split command list
|
|
|
|
// Split command list
|
|
|
|
cmdlist = argsep(&head, ";");
|
|
|
|
cmdlist = argsep(&head, ";");
|
|
|
|
cmdlist += strspn(cmdlist, whitespace);
|
|
|
|
for (; isspace(*cmdlist); ++cmdlist) {}
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
// Split commands
|
|
|
|
// Split commands
|
|
|
|
cmd = argsep(&cmdlist, ",");
|
|
|
|
cmd = argsep(&cmdlist, ",");
|
|
|
|
cmd += strspn(cmd, whitespace);
|
|
|
|
for (; isspace(*cmd); ++cmd) {}
|
|
|
|
if (strcmp(cmd, "") == 0) {
|
|
|
|
if (strcmp(cmd, "") == 0) {
|
|
|
|
wlr_log(WLR_INFO, "Ignoring empty command.");
|
|
|
|
wlr_log(WLR_INFO, "Ignoring empty command.");
|
|
|
|
continue;
|
|
|
|
continue;
|
|
|
|