fix: make pointer lock work on Wayland#49283
Conversation
|
Electron fiddle of MDN pointer lock demo for testing: https://gist.github.com/vainiovano/1c845b46e7b85012daee9f5e6aa0c874 |
|
Thanks for the PR!
Would it make sense to fix this upstream by implementing it in |
Yeah, I don't see anything that would prevent implementing it there, and this was in fact suggested in the initial PR that implemented pointer lock on Wayland. I opened https://chromium-review.googlesource.com/c/chromium/src/+/7362747 for this. |
|
Thank you SO MUCH! |
nikwen
left a comment
There was a problem hiding this comment.
Thank you so much, @vainiovano! 🙏
I just got a notification that your patch was merged upstream.
Could you update this PR to be a backport of that patch? Here are our docs for how the patch system works.
In short:
- Go into
src - Apply your patch
git commite patches chromiumcd electrongit commitgit push -f
5b3b036 to
1ecd2ce
Compare
|
@nikwen This has now been turned into a backport of the upstream patch |
1ecd2ce to
b5f6e3c
Compare
b5f6e3c to
427bae4
Compare
There was a problem hiding this comment.
Hello @vainiovano! It looks like this pull request touches one of our dependency or CI files, and per our contribution policy we do not accept these types of changes in PRs.
|
I updated this to target the |
427bae4 to
203272d
Compare
203272d to
7121c7e
Compare
|
@vainiovano it looks like the patch fails to apply? |
|
@codebytere It looks like the chromium update in ee64692 is conflicting with 45a6bfb: the patch got backported upstream, and the electron backport is now conflicting with it. |
7121c7e to
ae88804
Compare
|
Rebased to bring in 21c6e4e which drops the v8 patch |
Chromium used to only implement pointer lock on Wayland in Chrome-specific code, and this prevented Electron from making use of it. This has been fixed on chromium main, so backport this as a patch to Electron.
ae88804 to
d2ff1fa
Compare
|
Congrats on merging your first pull request! 🎉🎉🎉 |
|
Release Notes Persisted
|
|
I was unable to backport this PR to "40-x-y" cleanly; |
|
I have automatically backported this PR to "41-x-y", please check out #49837 |
Description of Change
Chromium used to only implement pointer lock on Wayland in
Chrome-specific code, and this prevented Electron from making use of it.
This has been fixed on chromium main, so backport this as a patch to
Electron.
Checklist
npm testpassesRelease Notes
Notes: Made pointer lock work on Wayland.