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
servoshell: add fullscreen option #30614
base: main
Are you sure you want to change the base?
servoshell: add fullscreen option #30614
Conversation
🔨 Triggering try run (#6846095678) with platforms=windows and layout=none |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch!
I think fullscreen generally means not having any window decorations, not just maximised. We should also return whether we started in fullscreen in the Window.fullscreen of our return value.
You can use WindowBuilder::with_fullscreen or winit Window::set_fullscreen for this, or even better, call .set_fullscreen(true) on our headed Window before returning it.
✨ Try run (#6846095678) succeeded. |
e58e4ab
to
6cd0f48
Compare
ports/servoshell/headed_window.rs
Outdated
@@ -139,7 +142,7 @@ impl Window { | |||
.expect("Failed to create WR surfman"); | |||
|
|||
debug!("Created window {:?}", winit_window.id()); | |||
Window { | |||
let window = Window { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this is needed?
These changes add a cli option to start servo in fullscreen mode. As requested in #30599.
It is currently in draft form as we need to have further discussions to determine whether we truly need it.
No tests for now.