diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-01-25 08:29:21 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2019-01-25 08:29:21 +1000 |
commit | 20aa8ee67dc528299dbc8735220a1c081c7ff9f6 (patch) | |
tree | 685de48be3db51fc01510ccf051e2b63a4655fba /sway/commands/workspace.c | |
parent | Update for swaywm/wlroots#1402 (diff) | |
download | sway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.tar.gz sway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.tar.zst sway-20aa8ee67dc528299dbc8735220a1c081c7ff9f6.zip |
Implement fullscreen global
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r-- | sway/commands/workspace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c index 6bfca506..c5d6435a 100644 --- a/sway/commands/workspace.c +++ b/sway/commands/workspace.c | |||
@@ -168,6 +168,11 @@ struct cmd_results *cmd_workspace(int argc, char **argv) { | |||
168 | "Can't run this command while there's no outputs connected."); | 168 | "Can't run this command while there's no outputs connected."); |
169 | } | 169 | } |
170 | 170 | ||
171 | if (root->fullscreen_global) { | ||
172 | return cmd_results_new(CMD_FAILURE, "workspace", | ||
173 | "Can't switch workspaces while fullscreen global"); | ||
174 | } | ||
175 | |||
171 | bool no_auto_back_and_forth = false; | 176 | bool no_auto_back_and_forth = false; |
172 | while (strcasecmp(argv[0], "--no-auto-back-and-forth") == 0) { | 177 | while (strcasecmp(argv[0], "--no-auto-back-and-forth") == 0) { |
173 | no_auto_back_and_forth = true; | 178 | no_auto_back_and_forth = true; |