Add desktop.c

Move from view.c functions which work on server->views
This commit is contained in:
Johan Malm 2020-09-11 20:48:28 +01:00
parent 5181a0ac52
commit fb6f7d42a5
9 changed files with 229 additions and 222 deletions

View file

@ -11,7 +11,8 @@ void action(struct server *server, struct keybind *keybind)
if (!strcasecmp(keybind->action, "Exit")) {
wl_display_terminate(server->wl_display);
} else if (!strcasecmp(keybind->action, "NextWindow")) {
server->cycle_view = view_next(server, server->cycle_view);
server->cycle_view =
desktop_next_view(server, server->cycle_view);
} else if (!strcasecmp(keybind->action, "Execute")) {
spawn_async_no_shell(keybind->command);
} else if (!strcasecmp(keybind->action, "debug-views")) {