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

[Bug]: Unable to detect the screen after Mission Control usage #41604

Open
3 tasks done
vmatyagin opened this issue Mar 15, 2024 · 0 comments
Open
3 tasks done

[Bug]: Unable to detect the screen after Mission Control usage #41604

vmatyagin opened this issue Mar 15, 2024 · 0 comments
Labels
29-x-y bug 🪲 has-repro-gist Issue can be reproduced with code at https://gist.github.com/

Comments

@vmatyagin
Copy link

Preflight Checklist

Electron Version

29.1.4

What operating system are you using?

macOS

Operating System Version

macOS, 14.2.1 (23C71)

What arch are you using?

arm64 (including Apple Silicon)

Last Known Working Electron version

No response

Expected Behavior

Bounds are correct after moving a window to another display from mission control.

Actual Behavior

Bounds are incorrect after moving a window to another display from mission control.

Testcase Gist URL

https://gist.github.com/VMatyagin/2e453a22a0ca3e355350872bbfa96bca

Additional Information

The dimensions can only be calculated after move event on the observed component

Actually, I wrote a native module as a workaround fix, but in this case the window opens with correct bounds, but the content width is still the same and changes only after the show event even with disabled backgroundThrottling. It seems setBounds only applies after show event

electron-issue.mp4
@vmatyagin vmatyagin changed the title [Bug]: Incorrect screen detection after Mission Control usage [Bug]: Unable to detect the screen after Mission Control usage Mar 15, 2024
@jkleinsc jkleinsc added has-repro-gist Issue can be reproduced with code at https://gist.github.com/ 29-x-y labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
29-x-y bug 🪲 has-repro-gist Issue can be reproduced with code at https://gist.github.com/
Projects
No open projects
Status: 👍 Does Not Block Stable
Development

No branches or pull requests

2 participants