Process WM_SYSCOMMAND to forbid screen savers in fullscreen mode (#1065)
* Process WM_SYSCOMMAND to forbid screen savers in fullscreen mode Fixes #1047 * Update CHANGELOG.md and documentation to reflect changes from issue #1065 * Updated documentation of window.Window.set_fullscreen to match the documentation of window.WindowBuilder.with_fullscreen.
This commit is contained in:
parent
f4e9bf51db
commit
e5ba79db04
3 changed files with 17 additions and 0 deletions
|
|
@ -224,6 +224,10 @@ impl WindowBuilder {
|
|||
|
||||
/// Sets the window fullscreen state. None means a normal window, Some(MonitorHandle)
|
||||
/// means a fullscreen window on that specific monitor
|
||||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - **Windows:** Screen saver is disabled in fullscreen mode.
|
||||
#[inline]
|
||||
pub fn with_fullscreen(mut self, monitor: Option<MonitorHandle>) -> WindowBuilder {
|
||||
self.window.fullscreen = monitor;
|
||||
|
|
@ -534,6 +538,7 @@ impl Window {
|
|||
/// ## Platform-specific
|
||||
///
|
||||
/// - **iOS:** Can only be called on the main thread.
|
||||
/// - **Windows:** Screen saver is disabled in fullscreen mode.
|
||||
#[inline]
|
||||
pub fn set_fullscreen(&self, monitor: Option<MonitorHandle>) {
|
||||
self.window.set_fullscreen(monitor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue