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 resizing tiled scratchpad windows #7680

Merged

Conversation

bretello
Copy link
Contributor

Splitting and then hiding a scratchpad container results in a segfault.

fixes #6693

@bretello
Copy link
Contributor Author

This crash can be reproduced with the config/script mentioned in #6693 (comment)

@rpigott
Copy link
Member

rpigott commented Jul 17, 2023

It would prolly make sense to check container_is_scratchpad_hidden_or_child at the beginning of container_resize_tiled.

@bretello bretello force-pushed the fix-scratchpad-tiled-container-resize-crash branch from aee1051 to 9bd0c5c Compare July 17, 2023 22:56
@bretello bretello force-pushed the fix-scratchpad-tiled-container-resize-crash branch from 9bd0c5c to d16bdbd Compare July 18, 2023 08:33
@emersion emersion requested a review from rpigott July 18, 2023 08:47
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'd like @rpigott to check as well :)

@bretello bretello force-pushed the fix-scratchpad-tiled-container-resize-crash branch from d16bdbd to ef94156 Compare July 21, 2023 10:00
@bretello bretello requested a review from rpigott July 22, 2023 16:22
Copy link
Member

@rpigott rpigott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@rpigott
Copy link
Member

rpigott commented Jul 22, 2023

Ehm, can you maybe rebase this so it can be merged? I dunno what github's problem with it is.

Splitting and then hiding a scratchpad container results in
a segfault.

fixes swaywm#6693
@bretello bretello force-pushed the fix-scratchpad-tiled-container-resize-crash branch from ef94156 to 18dd3b0 Compare July 23, 2023 18:05
@bretello
Copy link
Contributor Author

@rpigott Done. Thanks!

@rpigott rpigott merged commit dc634c4 into swaywm:master Jul 23, 2023
@bretello bretello deleted the fix-scratchpad-tiled-container-resize-crash branch July 24, 2023 11:31
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.

Segfault in cmd_resize
3 participants