Add borderless fullscreen mode for orbital (#4343)
This commit is contained in:
parent
488c036a05
commit
4d9302b33c
3 changed files with 30 additions and 8 deletions
|
|
@ -996,7 +996,8 @@ pub trait Window: AsAny + Send + Sync + fmt::Debug {
|
|||
/// separate spaces are not preferred.
|
||||
///
|
||||
/// The dock and the menu bar are disabled in exclusive fullscreen mode.
|
||||
/// - **Wayland:** Does not support exclusive fullscreen mode and will no-op a request.
|
||||
/// - **Orbital / Wayland:** Does not support exclusive fullscreen mode and will no-op a
|
||||
/// request.
|
||||
/// - **Windows:** Screen saver is disabled in fullscreen mode.
|
||||
/// - **Web:** Passing a [`MonitorHandle`] or [`VideoMode`] that was not created with detailed
|
||||
/// monitor permissions or calling without a [transient activation] does nothing.
|
||||
|
|
@ -1009,9 +1010,9 @@ pub trait Window: AsAny + Send + Sync + fmt::Debug {
|
|||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - **Android / Orbital:** Will always return `None`.
|
||||
/// - **Android:** Will always return `None`.
|
||||
/// - **Orbital / Web:** Can only return `None` or `Borderless(None)`.
|
||||
/// - **Wayland:** Can return `Borderless(None)` when there are no monitors.
|
||||
/// - **Web:** Can only return `None` or `Borderless(None)`.
|
||||
fn fullscreen(&self) -> Option<Fullscreen>;
|
||||
|
||||
/// Turn window decorations on or off.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue