Add roots_seat_cycle_focus

This commit is contained in:
emersion 2017-11-19 19:21:18 +01:00
parent bf41e7a794
commit 97ddd2d1df
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
5 changed files with 18 additions and 11 deletions

View file

@ -96,11 +96,7 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
view_close(focus);
}
} else if (strcmp(command, "next_window") == 0) {
if (!wl_list_empty(&seat->views)) {
struct roots_seat_view *last_seat_view = wl_container_of(
seat->views.prev, last_seat_view, link);
roots_seat_focus_view(seat, last_seat_view->view);
}
roots_seat_cycle_focus(seat);
} else if (strncmp(exec_prefix, command, strlen(exec_prefix)) == 0) {
const char *shell_cmd = command + strlen(exec_prefix);
pid_t pid = fork();