From 20aa8ee67dc528299dbc8735220a1c081c7ff9f6 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 25 Jan 2019 08:29:21 +1000 Subject: Implement fullscreen global --- sway/commands/workspace.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sway/commands/workspace.c') 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) { "Can't run this command while there's no outputs connected."); } + if (root->fullscreen_global) { + return cmd_results_new(CMD_FAILURE, "workspace", + "Can't switch workspaces while fullscreen global"); + } + bool no_auto_back_and_forth = false; while (strcasecmp(argv[0], "--no-auto-back-and-forth") == 0) { no_auto_back_and_forth = true; -- cgit v1.2.3-54-g00ecf