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 when moving to scratchpad tiled window #202

Merged

Conversation

Yaroslav-95
Copy link
Contributor

After #171 swayfx started segfaulting on me when moving a tiled window to the scratchpad. After taking a look at the code, I decided it was better if we didn't render a container that was going away to the scratchpad anyway, therefore also avoiding the NULL-dereferencing that was happening inside gaps_to_edge() that led to the segfault.

If you want to reproduce the bug that is currently present in master, you can try just moving a tiled window to the scratchpad. It isn't always triggered, but the possibility that it is triggered increases the more windows you have open in your workspace.

I've tested this PR on my machines, so far so good.

@WillPower3309 WillPower3309 merged commit 7b7f060 into WillPower3309:master Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants