Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix NULL dereference when refreshing window leader with an inconsistent wm tree#1337

Merged
yshui merged 2 commits into
nextfrom
leader-wm-consistency
Sep 10, 2024
Merged

Fix NULL dereference when refreshing window leader with an inconsistent wm tree#1337
yshui merged 2 commits into
nextfrom
leader-wm-consistency

Conversation

@yshui

@yshui yshui commented Sep 9, 2024

Copy link
Copy Markdown
Owner

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]>
@codecov

codecov Bot commented Sep 9, 2024

Copy link
Copy Markdown

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
Copy Markdown
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
@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