-
Notifications
You must be signed in to change notification settings - Fork 941
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
Process WM_SYSCOMMAND to forbid screen savers in fullscreen mode #1065
Conversation
Thanks for implementing this! These changes look good. All it needs is a changelog entry, and I'll merge it. EDIT: This behavior should probably have documentation as well. |
No problem at all! Where should i put this behavior in the documentation? |
@dam4rus I'd put it here: https://docs.rs/winit/0.20.0-alpha2/winit/window/struct.WindowBuilder.html#method.with_fullscreen I'd change this function's doc to link to |
Yes, and now I'd link the two docs like this: https://doc.rust-lang.org/src/alloc/vec.rs.html#284 |
@zegentzy I've updated the documentation for https://docs.rs/winit/0.20.0-alpha2/winit/window/struct.WindowBuilder.html#method.with_fullscreen, but shouldn't we link all documentation from https://docs.rs/winit/0.20.0-alpha2/winit/window/struct.Window.html to it's WindowBuilder counterpart then? I think it would be weird if only this function is a link to another documentation. |
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.
Yeah, I guess that is weird. Could you open a issue for linking all the docs? I think that makes more sense than having to copies of everything. Until then, could you document it in both methods?
I've opened an issue for the docs change |
Hey @Osspial, I can't merge this 'cause rustfmt is failing. :( |
Can you rebase this against master, so that the CI fixes it self? |
…cumentation of window.WindowBuilder.with_fullscreen.
…t-windowing#1065) * Process WM_SYSCOMMAND to forbid screen savers in fullscreen mode Fixes rust-windowing#1047 * Update CHANGELOG.md and documentation to reflect changes from issue rust-windowing#1065 * Updated documentation of window.Window.set_fullscreen to match the documentation of window.WindowBuilder.with_fullscreen.
…t-windowing#1065) * Process WM_SYSCOMMAND to forbid screen savers in fullscreen mode Fixes rust-windowing#1047 * Update CHANGELOG.md and documentation to reflect changes from issue rust-windowing#1065 * Updated documentation of window.Window.set_fullscreen to match the documentation of window.WindowBuilder.with_fullscreen.
Fixes #1047
Tested only on Windows 10, but should work on previous version.
cargo fmt
has been run on this branchCHANGELOG.md
if knowledge of this change could be valuable to users