[bug] decoration doesn't work on Wayland
Describe the bug
On wayland when "decorations": false in tauri.conf.json , the decoration doesn't hide but when std::env::set_var("GDK_BACKEND", "x11"); it hidden but I do not want to set it to x11.
Reproduction
1.set "decorations": false in tauri.conf.json
2.start your tauri application
Expected behavior
the decoration is not visible when using wayland without setting.
Platform and versions
Environment
› OS: openSUSE 20230322 X64
› Node.js: 16.18.0
› npm: 9.3.1
› pnpm: 7.17.0
› yarn: 1.22.19
› rustup: 1.25.2
› rustc: 1.67.1
› cargo: 1.67.1
› Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages
› @tauri-apps/cli [NPM]: 1.2.3
› @tauri-apps/api [NPM]: 1.2.0
› tauri [RUST]: 1.2.4,
› tauri-build [RUST]: 1.2.1,
› tao [RUST]: 0.15.8,
› wry [RUST]: 0.23.4,
App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:1420/
› framework: React
› bundler: Vite
App directory structure
├─ src-tauri
├─ .vscode
├─ src
├─ public
├─ dist
├─ .github
├─ node_modules
├─ .git
└─ docker
Stack trace
No response
Additional context
No response
I'm developing on an Ubuntu based OS and bumped into the same problem. Took me a while before realizing...
Environment
› OS: Ubuntu 23.04 X64
› Node.js: 18.12.0
› npm: 9.5.1
› pnpm: Not installed!
› yarn: 0.32+git
› rustup: 1.25.2
› rustc: 1.68.0
› cargo: 1.68.0
› Rust toolchain: stable-x86_64-unknown-linux-gnu
Packages
› @tauri-apps/cli [NPM]: 1.0.2 (outdated, latest: 1.3.1)
› @tauri-apps/api [NPM]: 1.3.0
› tauri [RUST]: 1.3.0,
› tauri-build [RUST]: 1.3.0,
› tao [RUST]: 0.16.1,
› wry [RUST]: 0.24.3,
App
› build-type: bundle
› CSP: unset
› distDir: public
› devPath: http://localhost:5173/
› framework: Svelte
App directory structure
├─ .svelte-kit
├─ node_modules
├─ public
├─ src
├─ src-tauri
└─ static
I can also confirm the same issue on Wayland, Arch Linux
[✔] Environment
- OS: Arch Linux Rolling Release X64
✔ webkit2gtk-4.0: 2.40.3
✔ rsvg2: 2.56.2
✔ rustc: 1.70.0 (90c541806 2023-05-31)
✔ Cargo: 1.70.0 (ec8a8a0ca 2023-04-25)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 20.4.0
- yarn: 1.22.19
- npm: 9.8.0
[-] Packages
- tauri [RUST]: 1.4.0
- tauri-build [RUST]: 1.4.0
- wry [RUST]: 0.24.3
- tao [RUST]: 0.16.2
- @tauri-apps/api [NPM]: 1.4.0
- @tauri-apps/cli [NPM]: 1.4.0
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:8080/
- framework: Vue.js (Vue CLI)
- bundler: Webpack
~~This bug is from gtk. Both gtk+3.0 and gtk4 have this bug. I have reproduced it but I don't know how to fix it.~~ ~~Now I am confused that weather it is form gtk or kde. I can not reproduced the bug on gnome.~~
https://bugs.kde.org/show_bug.cgi?id=484800
It seems like this bug is from GTK? https://gitlab.gnome.org/GNOME/gtk/-/issues/5479
OS: Arch Linux x86_64 DE: KDE Plasma 6.0.3 Kernel: 6.8.2-arch2-1 WM: KWin (Wayland) WM Theme: Breeze Theme: Breeze (Light) [QT], Breeze [GTK2/3] Icons: breeze [QT], breeze [GTK2/3/4] Font: Noto Sans CJK SC (10pt) [QT], Noto Sans CJK SC (10pt) [GTK2/3] Cursor: breeze (24px) Terminal: konsole 24.2.1