diff options
author | crondog <crondog@gmail.com> | 2016-01-05 10:55:29 +1100 |
---|---|---|
committer | crondog <crondog@gmail.com> | 2016-01-05 10:55:29 +1100 |
commit | b755fd073e29819486b4899a40fb3a46dba0a81a (patch) | |
tree | 2d1c79afba126dac16a8c934ca509c6b20551417 /sway/commands.c | |
parent | 27ab7d898219ff9a5aa2126d9f4ea9ee82403254 (diff) |
Return focus to fullscreen view
This fixes https://github.com/SirCmpwn/sway/issues/431 by returning
focus to the fullscreen view. Also it fixes the issue with the
fullscreen view pointer not being set which did my head in
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 38019be5..9cc33b9c 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -1464,7 +1464,7 @@ static struct cmd_results *cmd_fullscreen(int argc, char **argv) { wlc_view_set_state(container->handle, WLC_BIT_FULLSCREEN, !current); // Resize workspace if going from fullscreen -> notfullscreen // otherwise just resize container - if (current) { + if (!current) { arrange_windows(workspace, -1, -1); workspace->fullscreen = container; } else { |