aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/fullscreen.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-04-10 07:17:47 -0400
committerGitHub <noreply@github.com>2017-04-10 07:17:47 -0400
commit5d3a02a7c624bbef07b1b228eb1bb60fade5248c (patch)
tree35860f43beb1ce46de5a3d780ca33830d4bc9ba4 /sway/commands/fullscreen.c
parent60ce81e06adc9ea133e8cfd030465e94295a95ff (diff)
parent7fee555a462b001748352da1339c9bcc0e154a3b (diff)
Merge branch 'master' into pretty-print-swaymsg
Diffstat (limited to 'sway/commands/fullscreen.c')
-rw-r--r--sway/commands/fullscreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/fullscreen.c b/sway/commands/fullscreen.c
index 321d6f59..bfff82f9 100644
--- a/sway/commands/fullscreen.c
+++ b/sway/commands/fullscreen.c
@@ -14,7 +14,7 @@ struct cmd_results *cmd_fullscreen(int argc, char **argv) {
if ((error = checkarg(argc, "fullscreen", EXPECTED_AT_LEAST, 0))) {
return error;
}
- swayc_t *container = get_focused_view(&root_container);
+ swayc_t *container = current_container;
if(container->type != C_VIEW){
return cmd_results_new(CMD_INVALID, "fullscreen", "Only views can fullscreen");
}