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(macOS): Window layers #220

Merged
merged 3 commits into from
Apr 29, 2021
Merged

fix(macOS): Window layers #220

merged 3 commits into from
Apr 29, 2021

Conversation

lemarier
Copy link
Member

@lemarier lemarier commented Apr 28, 2021

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Documentation
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes. Issue #___
  • No

The PR fulfills these requirements:

  • When resolving a specific issue, it's referenced in the PR's title (e.g. fix: #xxx[,#xxx], where "xxx" is the issue number)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.

Other information:
Fix #175
Related to #184

Instead of injecting the webview as a subview into the winit created view, we inject the wen view into the window directly.
This removes an unused layer.

Also, the webview is now created with a CGRect set to 0 and the macOS layer takes care to auto-resize the webview correctly.

Screen.Recording.2021-04-28.at.4.08.33.PM.mov

@lemarier lemarier requested a review from a team as a code owner April 28, 2021 20:10
@lemarier lemarier requested a review from a team April 28, 2021 20:10
@wusyong wusyong merged commit d550b2f into dev Apr 29, 2021
@wusyong wusyong deleted the fix/macos-cursor-webview branch April 29, 2021 03:59
@github-actions github-actions bot mentioned this pull request Apr 29, 2021
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.

Cursor bug on macOS
2 participants