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 rendering errors on enabling/resizing monitors #1344

Merged
merged 1 commit into from
Sep 28, 2024
Merged

Conversation

Suyooo
Copy link
Contributor

@Suyooo Suyooo commented Sep 28, 2024

See issue #1338 - commit 0aa6202 introduced a problem with display changes, where root window Configure events would be ignored due to the new conditional, since the event comes from the root window itself. This is a small PR just moving that conditional, to make sure that root window events are always processed, and the filter only applies on other windows.

@absolutelynothelix
Copy link
Collaborator

clang-format -i src/event.c
git add src/event.c
git commit --amend --no-edit
git push --force

The guard added in commit 0aa620 to avoid duplicates filters out all Configure events on the root window, causing picom
to not properly render the screen area after display configuration changes, such as adding or resizing a monitor.

Only apply the guard if the Configure event affects a window other than the root window.

Fixes #1338
@Suyooo
Copy link
Contributor Author

Suyooo commented Sep 28, 2024

Thank you, fixed! Checks pass now

@yshui
Copy link
Owner

yshui commented Sep 28, 2024

Nice catch! Thanks for the fix!

@yshui yshui merged commit 5c4f110 into yshui:next Sep 28, 2024
15 checks passed
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.

3 participants