mirror of
https://github.com/swaywm/sway.git
synced 2025-11-04 13:29:52 -05:00
commands: complete workspace implementation
Allow optional --no-auto-back-and-forth flag, as well as refactoring some logic
This commit is contained in:
parent
356063b6c0
commit
85ae121caa
4 changed files with 59 additions and 46 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue