commands: complete workspace implementation

Allow optional --no-auto-back-and-forth flag, as well as refactoring some logic
This commit is contained in:
Ian Fan 2018-08-05 00:05:48 +01:00
parent 356063b6c0
commit 85ae121caa
4 changed files with 59 additions and 46 deletions

View file

@ -1,6 +1,7 @@
#ifndef _SWAY_WORKSPACE_H
#define _SWAY_WORKSPACE_H
#include <stdbool.h>
#include "sway/tree/container.h"
struct sway_view;
@ -17,7 +18,8 @@ extern char *prev_workspace_name;
char *workspace_next_name(const char *output_name);
bool workspace_switch(struct sway_container *workspace);
bool workspace_switch(struct sway_container *workspace,
bool no_auto_back_and_forth);
struct sway_container *workspace_by_number(const char* name);