[bug] [Linux / KDE Plasma Wayland] Title bar buttons dead after restore from tray until maximize or resize
type: bugplatform: Linuxstatus: needs triage
### Describe the bug
nvironment
OS: Linux (Fedora), KDE Plasma, Wayland
App: ERP Boilerplate (Tauri 2.x)
Feature: Minimize to tray when closing
Expected
After closing to tray and choosing Show application, native minimize / maximize / close work immediately.
Actual
Window restores and looks normal, but title-bar buttons do not respond. Workaround: double-click title bar (maximize/restore) or resize the window; then buttons work.
Notes
Close-to-tray uses hide(), not minimize. Restore path: show() → optional unminimize() → Linux decoration refresh (maximize/unmaximize cycle). See src-tauri/src/core/tray/setup.rs.
How to test
npm run tauri dev (or your usual run command).
Enable Minimize to tray when closing in settings.
Close the main window (hides to tray).
Tray → Show application.
Try minimize / maximize / close on the title bar.
Pass: Buttons work without manual resize or double-click.
Fail: Buttons dead until maximize/resize; note whether a brief maximize flicker appears and if buttons work after it (helps tune delay, e.g. 150–200 ms).
### Reproduction
_No response_
### Expected behavior
_No response_
### Full `tauri info` output
```text
Environment
- OS: Fedora 44.0.0 x86_64 (X64) (KDE on wayland)
✔ webkit2gtk-4.1: 2.52.3
✔ rsvg2: 2.62.2
✔ rustc: 1.95.0 (59807616e 2026-04-14)
✔ cargo: 1.95.0 (f2d3ce0bd 2026-03-21)
✔ rustup: 1.29.0 (28d1352db 2026-03-05)
✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
- node: 22.22.2
- yarn: 1.22.22
- npm: 10.9.7
[-] Packages
- tauri 🦀: 2.11.2
- tauri-build 🦀: 2.6.2
- wry 🦀: 0.55.1
- tao 🦀: 0.35.3
- @tauri-apps/api ⱼₛ: 2.11.0
- @tauri-apps/cli ⱼₛ: 2.11.2
[-] Plugins
- tauri-plugin-opener 🦀: 2.5.4
- @tauri-apps/plugin-opener ⱼₛ: 2.5.4
[-] App
- build-type: bundle
- CSP: default-src 'self'; connect-src 'self' ipc: http://ipc.localhost https://ipc.localhost http://localhost:* ws://localhost:*; img-src 'self' asset: https://asset.localhost blob: data:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; script-src 'self' 'unsafe-inline'
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: React
- bundler: Vite
```
### Stack trace
```text
```
### Additional context
_No response_
0 条评论