Skip to content

Commit

Permalink
desktop/tauri: optimize disable resizable transparent window and enab…
Browse files Browse the repository at this point in the history
…le setfullscreen on macos
  • Loading branch information
alimy committed Jun 17, 2022
1 parent e8cefc4 commit 5817199
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rust-version = "1.57"
tauri-build = { version = "1.0", features = [] }

[dependencies]
tauri = { version = "1.0", features = ["api-all"] }
tauri = { version = "1.0", features = ["api-all", "macos-private-api"] }

[features]
# by default Tauri runs in production mode
Expand Down
7 changes: 5 additions & 2 deletions web/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"withGlobalTauri": true
},
"tauri": {
"macOSPrivateApi": true,
"bundle": {
"active": true,
"targets": "all",
Expand Down Expand Up @@ -63,8 +64,10 @@
"title": "泡泡 | 一个清新文艺的微社区",
"width": 1080,
"height": 800,
"resizable": true,
"fullscreen": false
"resizable": false,
"fullscreen": false,
"transparent": true,
"decorations": true
}
],
"security": {
Expand Down

0 comments on commit 5817199

Please sign in to comment.