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

In immersive mode, make sure to mark the window as not visible #25794

Closed
paulrouget opened this issue Feb 18, 2020 · 2 comments
Closed

In immersive mode, make sure to mark the window as not visible #25794

paulrouget opened this issue Feb 18, 2020 · 2 comments

Comments

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Feb 18, 2020

I haven't tested yet, but we should make sure, at least in the case of the HL, that the compositor pipeline is set to not visible, to avoid useless animation to run in the background.

@asajeffrey
Copy link
Member

@asajeffrey asajeffrey commented Feb 18, 2020

We may need an api for the webxr device to tell servo if entering immersive mode obscures the browser display.

@paulrouget paulrouget mentioned this issue Feb 19, 2020
3 of 3 tasks complete
@paulrouget
Copy link
Contributor Author

@paulrouget paulrouget commented Feb 19, 2020

The 2D window get a hidden event when entering immersive mode.

bors-servo added a commit that referenced this issue Feb 20, 2020
Hide window

Stop animations when the window is hidden.

Tested with both Immersive Mode, and regular window being minimized.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25794 (GitHub issue number if applicable)
bors-servo added a commit that referenced this issue Feb 20, 2020
Hide window

Stop animations when the window is hidden.

Tested with both Immersive Mode, and regular window being minimized.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25794 (GitHub issue number if applicable)
bors-servo added a commit that referenced this issue Feb 20, 2020
Hide window

Stop animations when the window is hidden.

Tested with both Immersive Mode, and regular window being minimized.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25794 (GitHub issue number if applicable)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants
You can’t perform that action at this time.