Skip to content

Commit f5257bb

Browse files
authored
Fix macOS transparent pet window
Enable Tauri macOS private API support so transparent pet windows render correctly on macOS. Thanks to @lin-coco for the contribution.
1 parent 2d5c0cf commit f5257bb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ reqwest = { version = "0.13.3", default-features = false, features = ["json", "r
1818
rustls-native-certs = "0.8.3"
1919
serde = { version = "1.0", features = ["derive"] }
2020
serde_json = "1.0"
21-
tauri = { version = "2.11.0", features = ["tray-icon", "image-png"] }
21+
tauri = { version = "2.11.0", features = ["macos-private-api", "tray-icon", "image-png"] }
2222
tauri-plugin-dialog = "2"
2323
tauri-plugin-process = "2.3.1"
2424
tauri-plugin-updater = "2.10.1"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"frontendDist": "../dist"
1111
},
1212
"app": {
13+
"macOSPrivateApi": true,
1314
"windows": [
1415
{
1516
"label": "settings",

0 commit comments

Comments
 (0)