You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(webview-window): add set_simple_fullscreen to WebviewWindow (#14619)
* feat(webview): add set_simple_fullscreen to WebviewWindow
* add changes
* Combine per platform fn to one
---------
Co-authored-by: Tony <legendmastertony@gmail.com>
Add `set_simple_fullscreen` method to `WebviewWindow`.
6
+
7
+
This method was already available on the `Window` type and is now also available on `WebviewWindow` for consistency. On macOS, it toggles fullscreen mode without creating a new macOS Space. On other platforms, it falls back to regular fullscreen.
Copy file name to clipboardExpand all lines: crates/tauri/src/window/mod.rs
+19-17Lines changed: 19 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1968,25 +1968,27 @@ tauri::Builder::default()
1968
1968
.map_err(Into::into)
1969
1969
}
1970
1970
1971
-
/// Toggles a fullscreen mode that doesn’t require a new macOS space. Returns a boolean indicating whether the transition was successful (this won’t work if the window was already in the native fullscreen).
1971
+
/// Toggles a fullscreen mode that doesn't require a new macOS space.
1972
+
/// Returns a boolean indicating whether the transition was successful (this won't work if the window was already in the native fullscreen).
1972
1973
///
1973
-
/// This is how fullscreen used to work on macOS in versions before Lion. And allows the user to have a fullscreen window without using another space or taking control over the entire monitor.
/// On macOS, Toggles a fullscreen mode that doesn’t require a new macOS space. Returns a boolean indicating whether the transition was successful (this won’t work if the window was already in the native fullscreen).
1984
-
/// This is how fullscreen used to work on macOS in versions before Lion. And allows the user to have a fullscreen window without using another space or taking control over the entire monitor.
1974
+
/// This is how fullscreen used to work on macOS in versions before Lion.
1975
+
/// And allows the user to have a fullscreen window without using another space or taking control over the entire monitor.
1985
1976
///
1986
-
/// On other platforms, this is the same as [`Window#method.set_fullscreen`].
0 commit comments