Skip to content

fix: delay handling occlusion events to avoid flicker on macOS - #18661

Merged
MarshallOfSound merged 2 commits into
masterfrom
fix-flicker-on-fs
Jun 19, 2019
Merged

MarshallOfSound merged 2 commits into
masterfrom
fix-flicker-on-fs

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

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

@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner June 5, 2019 22:39
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Jun 5, 2019
@MarshallOfSound MarshallOfSound changed the title Fix flicker on fs fix: delay handling occlusion events to avoid flicker on macOS Jun 5, 2019
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Jun 6, 2019
@zcbenz

zcbenz commented Jun 15, 2019

Copy link
Copy Markdown
Contributor

This needs rebasing.

@release-clerk

release-clerk Bot commented Jun 19, 2019

Copy link
Copy Markdown

Release Notes Persisted

Fixed random flicker that occurred on macOS when performing fullscreen or workspace transitions

@trop

trop Bot commented Jun 19, 2019

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "6-0-x", please check out #18885

@r0stig

r0stig commented Jun 20, 2019

Copy link
Copy Markdown
Contributor

Is this being backported to 5.0.x? If not, when is 6.0.x planned to be released as stable?

@jkleinsc

Copy link
Copy Markdown
Member

/trop run backport-to 5-0-x

@trop

trop Bot commented Jul 17, 2019

Copy link
Copy Markdown
Contributor

The backport process for this PR has been manually initiated,
sending your 1's and 0's to "5-0-x" here we go! :D

@trop

trop Bot commented Jul 17, 2019

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "5-0-x" cleanly;
you will need to perform this backport manually.

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)
@trop

trop Bot commented Jul 17, 2019

Copy link
Copy Markdown
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
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.

v5.0.0: white flicker during Mission Control transitions and workspace transitions

5 participants