diff options
author | emersion <contact@emersion.fr> | 2017-11-19 19:21:18 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-11-19 19:21:18 +0100 |
commit | 97ddd2d1df439a5b074e4dfa2865479646b8f3a6 (patch) | |
tree | dcae2e3f61df151fcfa68031bfd9e0b5d61f8dcd /rootston/keyboard.c | |
parent | bf41e7a794cf4bde3612ec23744400388b9d6756 (diff) |
Add roots_seat_cycle_focus
Diffstat (limited to 'rootston/keyboard.c')
-rw-r--r-- | rootston/keyboard.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/rootston/keyboard.c b/rootston/keyboard.c index b8c7aca6..f3fc9a85 100644 --- a/rootston/keyboard.c +++ b/rootston/keyboard.c @@ -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(); |