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 crash on reload #2547

Merged
merged 2 commits into from
Sep 1, 2018
Merged

Fix crash on reload #2547

merged 2 commits into from
Sep 1, 2018

Conversation

RyanDwyer
Copy link
Member

If sway is reloaded using a bindsym which has multiple commands, it failed to detect the reload command, didn't create a duplicate of the binding and would crash because the reload command frees the bindings.

For example:

mode system {
    bindsym r reload, mode default
}

In this example, the binding->command is "reload, mode default".

Fixes #2545

If sway is reloaded using a bindsym which has multiple commands, it
failed to detect the reload command, didn't create a duplicate of the
binding and would crash because the reload command frees the bindings.

For example:

    mode system {
        bindsym r reload, mode default
    }

In this example, the binding->command is "reload, mode default".

Fixes swaywm#2545
This fixes a crash if you have commands where reload appears in the
middle or at the end, such as `bindsym r mode default, reload`.
@ddevault ddevault merged commit 89a0458 into swaywm:master Sep 1, 2018
@ddevault
Copy link
Contributor

ddevault commented Sep 1, 2018

Thanks!

@RyanDwyer RyanDwyer deleted the fix-reload-crash branch September 1, 2018 14: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.

None yet

2 participants