Repository navigation
fix: delay handling occlusion events to avoid flicker on macOS - #18661
Merged
Merged
Conversation
MarshallOfSound
force-pushed
the
fix-flicker-on-fs
branch
from
June 6, 2019 01:37
feb5bb9 to
5a1c9ae
Compare
codebytere
reviewed
Jun 10, 2019
MarshallOfSound
force-pushed
the
fix-flicker-on-fs
branch
from
June 11, 2019 00:43
5a1c9ae to
c0ee9fe
Compare
zcbenz
approved these changes
Jun 15, 2019
Contributor
|
This needs rebasing. |
…re quick changes in occlusion do not result in flickering
MarshallOfSound
force-pushed
the
fix-flicker-on-fs
branch
from
June 19, 2019 17:49
c0ee9fe to
fb67581
Compare
codebytere
approved these changes
Jun 19, 2019
|
Release Notes Persisted
|
3 tasks done
Contributor
|
I have automatically backported this PR to "6-0-x", please check out #18885 |
Contributor
|
Is this being backported to 5.0.x? If not, when is 6.0.x planned to be released as stable? |
This was referenced Jul 2, 2019
Member
|
/trop run backport-to 5-0-x |
Contributor
|
The backport process for this PR has been manually initiated, |
Contributor
|
I was unable to backport this PR to "5-0-x" cleanly; |
jkleinsc
pushed a commit
that referenced
this pull request
Jul 17, 2019
* chore: add debounce on the updateWebContentsVisibility method to ensure quick changes in occlusion do not result in flickering * chore: update old patch headers (cherry picked from commit 0146cc0)
4 tasks done
Contributor
|
A maintainer has manually backported this PR to "5-0-x", please check out #19315 |
codebytere
pushed a commit
that referenced
this pull request
Jul 18, 2019
* fix: delay handling occlusion events to avoid flicker on macOS (#18661) * chore: add debounce on the updateWebContentsVisibility method to ensure quick changes in occlusion do not result in flickering * chore: update old patch headers (cherry picked from commit 0146cc0) * Update patch for 5-0-x * Fix compilation errors
2 of 6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #17942 and #18410
The issue here is caused by a refactor in Chromium to listen to these occlusion events at at this remove view level. macOS issues two events very quickly during fullscreen transitions. The first says "occluded" the next says "visible". When in fact the window is never occluded.
This adds a patch that I hope to upstream to delay handling of the "occluded" event for a few seconds to ensure that a follow up "visible" event isn't incoming.
The second commit here is just patch hash updates.
Notes: Fixed random flicker that occurred on macOS when performing fullscreen or workspace transitions