Skip to content

Commit eb722fe

Browse files
committed
Fix fullscreen apps on macOS
1 parent f84d257 commit eb722fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/desktop/src-tauri/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ pub struct Storage {
3333
}
3434

3535
#[cfg(target_os = "macos")]
36-
fn apply_macos_specifics(_app: &mut App, window: &Window) {
36+
fn apply_macos_specifics(app: &mut App, window: &Window) {
3737
window.set_visisble_on_all_workspaces(true);
3838
window.set_transparent_titlebar(true, true);
39+
40+
// allow to show in fullscreen apps
41+
app.set_activation_policy(tauri::ActivationPolicy::Accessory);
3942
}
4043

4144
fn main() {

0 commit comments

Comments
 (0)