tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[bug] Window minimize when clicking show desktop though setting "minimizable": false

Open Moderpach opened this issue 1 month ago • 4 comments

Describe the bug

Window minimize when clicking "show desktop" at the right of taskbar.

My config:

"windows": [
      {
        "title": "a window",
        "width": 800,
        "height": 600,
        "alwaysOnBottom": true,
        "minimizable": false
      }
    ],

Reproduction

  1. Create a new tauri project and apply the upon config.
  2. Run the project.
  3. Click "show desktop" at taskbar.
  4. You can see the window is hided.

Expected behavior

Window keeps showing with window config "minimizable": false when clicking "show desktop".

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.26100 x86_64 (X64)
    ✔ WebView2: 142.0.3595.53
    ✔ MSVC: Visual Studio 生成工具 2022
    ✔ rustc: 1.90.0 (1159e78c4 2025-09-14)
    ✔ cargo: 1.90.0 (840b83a10 2025-07-30)
    ✔ rustup: 1.28.2 (e4f3ad6f8 2025-04-28)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (overridden by environment variable RUSTUP_TOOLCHAIN)

[-] Packages
    - tauri 🦀: 2.9.3
    - tauri-build 🦀: 2.5.2
    - wry 🦀: 0.53.5
    - tao 🦀: 0.34.5
    - tauri-cli 🦀: 2.9.4

[-] Plugins
    - tauri-plugin-opener 🦀: 2.5.2

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../sr

Stack trace


Additional context

Windows 11 26100.6899

Moderpach avatar Nov 13 '25 14:11 Moderpach

Do you have an example app or framework where this isn't the case? I don't think i've ever had an app that wasn't minimized by Show Desktop 🤔

FabianLars avatar Nov 13 '25 14:11 FabianLars

https://github.com/user-attachments/assets/7372f454-d34b-4163-84fa-82a9a4e24c9b

I think Chrome's desktop capture popup does that?

Legend-Master avatar Nov 27 '25 06:11 Legend-Master

~~i assume that's something like alwaysontop (or higher) though right~~ just woke up i can't remember how Windows' windowing works right now

FabianLars avatar Nov 27 '25 09:11 FabianLars

Ah, that made sense, it seems like if I set both with_minimizable(false), and with_always_on_top(true), it does work, not when only one of them were set though

Legend-Master avatar Nov 27 '25 09:11 Legend-Master