New binding to switch windows
This commit is contained in:
parent
2272f3d47c
commit
db3368ba43
|
@ -32,6 +32,13 @@ static void keyboard_binding_execute(struct roots_keyboard *keyboard,
|
||||||
if (keyboard->input->last_active_view != NULL) {
|
if (keyboard->input->last_active_view != NULL) {
|
||||||
view_close(keyboard->input->last_active_view);
|
view_close(keyboard->input->last_active_view);
|
||||||
}
|
}
|
||||||
|
} else if (strcmp(command, "next_window") == 0) {
|
||||||
|
if (server->desktop->views->length > 0) {
|
||||||
|
struct roots_view *view = server->desktop->views->items[0];
|
||||||
|
set_view_focus(keyboard->input, server->desktop, view);
|
||||||
|
wlr_seat_keyboard_notify_enter(keyboard->input->wl_seat,
|
||||||
|
view->wlr_surface);
|
||||||
|
}
|
||||||
} else if (strncmp(exec_prefix, command, strlen(exec_prefix)) == 0) {
|
} else if (strncmp(exec_prefix, command, strlen(exec_prefix)) == 0) {
|
||||||
const char *shell_cmd = command + strlen(exec_prefix);
|
const char *shell_cmd = command + strlen(exec_prefix);
|
||||||
pid_t pid = fork();
|
pid_t pid = fork();
|
||||||
|
|
|
@ -38,3 +38,4 @@ meta-key = Logo
|
||||||
[bindings]
|
[bindings]
|
||||||
Logo+Shift+e = exit # Stop the compositor
|
Logo+Shift+e = exit # Stop the compositor
|
||||||
Logo+q = close # Close the current view
|
Logo+q = close # Close the current view
|
||||||
|
Alt+Tab = next_window # Cycle through windows
|
||||||
|
|
Loading…
Reference in New Issue