tauri
tauri copied to clipboard
[bug] decorations: false causes rendering slowdown
Describe the bug
On Windows, set "decorations": false. At this time, when I clicked the Windows taskbar to display the hidden application, the resize event would be triggered, causing my webpage to keep rendering, which was very slow。This is not an issue when decorations is set true
Reproduction
No response
Expected behavior
No response
Platform and versions
Environment
› OS: Windows 10.0.19045 X64
› Webview2: 107.0.1418.62
› MSVC:
- Visual Studio Enterprise 2019
- Visual Studio ���ɹ��� 2022
› Node.js: 18.12.1
› npm: 8.19.2
› pnpm: Not installed!
› yarn: 1.22.19
› rustup: 1.25.1
› rustc: 1.65.0
› cargo: 1.65.0
› Rust toolchain: stable-x86_64-pc-windows-msvc
Packages › @tauri-apps/cli [NPM]: 1.2.1 › @tauri-apps/api [NPM]: 1.2.0 › tauri [RUST]: 1.2.1, › tauri-build [RUST]: 1.2.1, › tao [RUST]: 0.15.6, › wry [RUST]: 0.22.6,
App › build-type: bundle › CSP: unset › distDir: ../dist › devPath: http://localhost:2800/ › framework: Vue.js (Vue CLI) › bundler: Webpack
App directory structure ├─ .git ├─ .idea ├─ .vscode ├─ dist ├─ node_modules ├─ public ├─ src └─ src-tauri
Stack trace
No response
Additional context
No response
At this time, when I clicked the Windows taskbar to display the hidden application
do you mean minimized because a hidden window shouldn't exist on the taskbar?
@dongchaoforever Would you mind supplying a bit more information? It's hard to debug something like this without either a video or a reproduction available
Met the same bug. Just run the official API demo to see the result.
https://user-images.githubusercontent.com/1064052/222662358-add278a8-3002-4cdc-ba30-c8acf407ca7b.mov