tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
81.85k stars 2.46k forks source link

[bug]the windows title bar button can not be removed or disabled, or window can not be maximized as configured. #10551

Open skydig opened 1 month ago

skydig commented 1 month ago

Describe the bug

image button is like above, config like following: "resizable": false, "maximized":true, "width":1024, "height":768, "decorations":true

when button clicked, window becomes 1024*768, click again, restore to maximized.

Reproduction

No response

Expected behavior

window should kept maximized whenever button clicked or not

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.19045 X64
    ✔ WebView2: 126.0.2592.113
    ✔ MSVC:
        - Visual Studio Community 2019
        - Visual Studio Community 2022
    ✔ rustc: 1.82.0-nightly (28a58f2fa 2024-07-31)
    ✔ cargo: 1.82.0-nightly (257b72b8a 2024-07-30)
    ✔ rustup: 1.24.3 (ce5817a94 2021-05-31)
    ✔ Rust toolchain: nightly-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 18.0.0
    - npm: 9.6.6

[-] Packages
    - tauri [RUST]: 2.0.0-beta.22
    - tauri-build [RUST]: 2.0.0-beta.17
    - wry [RUST]: 0.40.1
    - tao [RUST]: 0.28.1
    - tauri-cli [RUST]: 2.0.0-beta.21
    - @tauri-apps/api : not installed!
    - @tauri-apps/cli [NPM]: 2.0.0-beta.21

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1422/

Stack trace

no

Additional context

No response

amrbashir commented 1 month ago

if you want to disable clicking on the mouse button, set maximizable: false

FabianLars commented 1 month ago

More context: https://github.com/tauri-apps/tauri/discussions/10514

Also, the docs state that resizable: false should have the same effect.

amrbashir commented 1 month ago

this was removed in https://github.com/tauri-apps/tao/pull/749 because it has its own dedicated option