Repository navigation
fix: desktopCapturer breaks BrowserWindow resizable on macOS - #43013
Merged
Merged
Conversation
VerteDinde
approved these changes
Jul 23, 2024
codebytere
force-pushed
the
fix-screencapture-resizable
branch
from
July 23, 2024 18:15
95e5e0c to
7086ce4
Compare
codebytere
force-pushed
the
fix-screencapture-resizable
branch
from
July 23, 2024 19:51
7086ce4 to
db6a23d
Compare
|
Release Notes Persisted
|
This was referenced Jul 25, 2024
Contributor
|
I have automatically backported this PR to "31-x-y", please check out #43044 |
Contributor
|
I have automatically backported this PR to "32-x-y", please check out #43045 |
3 tasks done
4 tasks done
MarshallOfSound
pushed a commit
that referenced
this pull request
Sep 25, 2026
… on macOS (#54396) The ScreenCaptureKit workaround from #43013 recorded each window's resizable state under an array key and looked it up by number, so the restore step never ran. Key the map by window id and cover BaseWindow. Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <[email protected]>
MarshallOfSound
pushed a commit
that referenced
this pull request
Sep 25, 2026
… on macOS (#54398) The ScreenCaptureKit workaround from #43013 recorded each window's resizable state under an array key and looked it up by number, so the restore step never ran. Key the map by window id and cover BaseWindow. Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <[email protected]>
MarshallOfSound
pushed a commit
that referenced
this pull request
Sep 25, 2026
… on macOS (#54397) The ScreenCaptureKit workaround from #43013 recorded each window's resizable state under an array key and looked it up by number, so the restore step never ran. Key the map by window id and cover BaseWindow. Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <[email protected]>
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.
Description of Change
Closes #43002.
Fixes an issue where calling
desktopCapturer.getSourceson macOS running 14.4 or later would make non-resizable windows resizable. This was happening due to a ScreenCaptureKit bug that modified a window's styleMask the first time it captured a non-resizable window. Fix this by recording each window's resizable status and potentially restoring it after the capture is complete.Checklist
npm testpassesRelease Notes
Notes: Fixed an issue where calling
desktopCapturer.getSourceson macOS running 14.4 or later would make non-resizable windows resizable.