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

layer-shell: don't give focus to unmapped layer surfaces #4525

Merged
merged 1 commit into from
Sep 1, 2019

Conversation

emersion
Copy link
Member

@emersion emersion commented Aug 31, 2019

Focused layers are not cleared when destroyed, they are cleared on unmap.
Giving focus to an unmapped layer surface is (1) incorrect and (2) triggers a
use-after-free.

Closes: #4517
Closes: #4502

Focused layers are not cleared when destroyed, they are cleared on unmap.
Giving focus to an unmapped layer surface is (1) incorrect and (2) triggers a
use-after-free.

Closes: swaywm#4517
@vilhalmer
Copy link
Contributor

This fixes the crash for me.

@ddevault
Copy link
Contributor

ddevault commented Sep 1, 2019

Thanks!

@ddevault ddevault merged commit 53e01bf into swaywm:master Sep 1, 2019
@emersion emersion mentioned this pull request Sep 1, 2019
@emersion emersion deleted the unmapped-layer-focused branch September 7, 2019 06:53
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.

Sway 1.2 crashes after copy/paste with wl-copy in neovim Segfault in wl_resource_get_client
3 participants