Skip to content

Process WM_SYSCOMMAND to forbid screen savers in fullscreen mode#1065

Merged
goddessfreya merged 4 commits intorust-windowing:masterfrom
dam4rus:wm-syscommand
Jul 29, 2019
Merged

Process WM_SYSCOMMAND to forbid screen savers in fullscreen mode#1065
goddessfreya merged 4 commits intorust-windowing:masterfrom
dam4rus:wm-syscommand

Conversation

@dam4rus
Copy link
Copy Markdown
Contributor

@dam4rus dam4rus commented Jul 23, 2019

Fixes #1047

Tested only on Windows 10, but should work on previous version.

  • Tested on all platforms changed
  • cargo fmt has been run on this branch
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created or updated an example program if it would help users understand this functionality
  • Updated feature matrix, if new features were added or implemented

@Osspial
Copy link
Copy Markdown
Contributor

Osspial commented Jul 23, 2019

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.

@dam4rus
Copy link
Copy Markdown
Contributor Author

dam4rus commented Jul 24, 2019

No problem at all!

Where should i put this behavior in the documentation?

@goddessfreya
Copy link
Copy Markdown
Contributor

@goddessfreya
Copy link
Copy Markdown
Contributor

@dam4rus
Copy link
Copy Markdown
Contributor Author

dam4rus commented Jul 26, 2019

@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.

Copy link
Copy Markdown
Contributor

@goddessfreya goddessfreya left a 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?

@dam4rus
Copy link
Copy Markdown
Contributor Author

dam4rus commented Jul 26, 2019

I've opened an issue for the docs change

@goddessfreya
Copy link
Copy Markdown
Contributor

Hey @Osspial, I can't merge this 'cause rustfmt is failing. :(

@goddessfreya
Copy link
Copy Markdown
Contributor

Can you rebase this against master, so that the CI fixes it self?

@goddessfreya goddessfreya merged commit e5ba79d into rust-windowing:master Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Process WM_SYSCOMMAND to forbid screen savers in fullscreen mode

3 participants