Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fullscreen command and improve documentation #3229

Merged
merged 2 commits into from
Dec 1, 2018

Conversation

mwenzkowski
Copy link
Contributor

The first commit fixes a problem that I have when using the following keybinding on an empty workspace

bindsym Mod4+v fullscreen disable,exec termite -e pulsemixer.

With this binding I want to open an application but in case that another view is currently in fullscreen mode, it should leave fullscreen mode first. This does not work on an empty Workspace, because fullscreen disable returns with error status CMD_INVALID and then the following exec command will not be executed (cf. https://github.com/swaywm/sway/blob/master/sway/commands.c#L307).
In i3 this binding works on empty workspaces.

The second commit documents the optional arguments of the fullscreen command, which can be found in i3's documentation too.

Changes the error result from CMD_INVALID to CMD_FAILURE, since
CMD_INVALID indicates an unknown command or parser error and neither
occurs where CMD_INVALID was used.
Document the optional arguments of the fullscreen command.
@RedSoxFan RedSoxFan merged commit 7702943 into swaywm:master Dec 1, 2018
@RedSoxFan
Copy link
Member

Thanks!

@mwenzkowski mwenzkowski deleted the fix-fullscreen-cmd branch April 16, 2019 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants