tauri-apps / tauri

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

[bug] [v2beta] `fullscreen` display bug. A white line on the top #10380

Open will5933 opened 1 month ago

will5933 commented 1 month ago

Describe the bug

fullscreen display bug. A white line on the top.

"app": {
    "withGlobalTauri": true,
    "windows": [
      {
        "label": "wallpaper_tauri_233",
        "title": "wallpaper tauri 233",
        "decorations": false,
        "fullscreen": true,
        "transparent": true,
        "resizable": false,
        "dragDropEnabled": false,
        "theme": "Dark"
      }
    ],
    "security": {
      "csp": null
    }
  },
PixPin_2024-07-25_07-23-48
[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 126.0.2592.113
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)

[-] Packages
    - tauri-cli [RUST]: 2.0.0-beta.22

[-] App

Additional context

OS: Windows 11 23H2
Internal Display
Display: Connected to AMD Radeon 780M Graphics

Desktop Mode: 2560 x 1600, 240 Hz
Active Signal Mode: 2560 x 1600, 240 Hz
Bit Depth: 10-bit
Color Format: RGB
Color Space: Standard Dynamic Range (SDR)
will5933 commented 1 month ago

👀

will5933 commented 1 month ago

@FabianLars i solved it by adding "shadow": false in tauri.conf.json. 我在tauri.conf.json文件中添加了"shadow": false,然后问题解决了。

    "windows": [
      {
        "title": "Desutop",
        "label": "main",
        "alwaysOnTop": true,
        "decorations": false,
        "fullscreen": true,
        "focus": false,
        "closable": false,
        "shadow": false,
        "resizable": false,
        "visible": false
      }
    ],