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 NULL dereference when refreshing window leader with an inconsistent wm tree #1337

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

yshui
Copy link
Owner

@yshui yshui commented Sep 9, 2024

supersedes #1336

@Monsterovich can you test if this fixes the problem for you?

When the wm tree is not consistent, there might be certain updates we
can't do (e.g. refreshing window leaders). So once the wm tree becomes
consistent we should retry.

Signed-off-by: Yuxuan Shui <[email protected]>
The leader nodes referenced might not be in the tree yet.

Fixes #1336

Signed-off-by: Yuxuan Shui <[email protected]>
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 53.72%. Comparing base (61361ad) to head (67ec733).
Report is 3 commits behind head on next.

Files with missing lines Patch % Lines
src/wm/wm.c 85.71% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #1337      +/-   ##
==========================================
- Coverage   53.78%   53.72%   -0.06%     
==========================================
  Files          70       70              
  Lines       15195    15206      +11     
==========================================
- Hits         8173     8170       -3     
- Misses       7022     7036      +14     
Files with missing lines Coverage Δ
src/picom.c 61.34% <100.00%> (-0.01%) ⬇️
src/wm/wm.c 82.37% <85.71%> (-0.58%) ⬇️

... and 3 files with indirect coverage changes

@Monsterovich
Copy link
Contributor

supersedes #1336

@Monsterovich can you test if this fixes the problem for you?

Yes, it does.

@yshui yshui merged commit 5f69580 into next Sep 10, 2024
22 checks passed
@yshui yshui deleted the leader-wm-consistency branch September 10, 2024 00:05
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