tauri-apps / tauri

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

[bug] when multiple monitors have `different scaling` settings, the window cannot switch correctly between monitors #10263

Open lh123 opened 4 months ago

lh123 commented 4 months ago

Describe the bug

image

when multiple monitors have different scaling settings, the window cannot switch correctly between monitors

Reproduction

when multiple monitors have different scaling settings, using windows + shift + Arrow to move a window to another screen, the window does not move correctly to the second screen.

https://github.com/user-attachments/assets/895877fb-ce2e-4517-8407-23ebb8d00dd1

Expected behavior

The window should move correctly to another screen.

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22631 X64
    ✔ WebView2: 126.0.2592.87
    ✔ MSVC: Visual Studio ���ɹ��� 2022
    ✔ rustc: 1.76.0 (07dca489a 2024-02-04)
    ✔ cargo: 1.76.0 (c84b36747 2024-01-18)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.11.0
    - pnpm: 8.6.3
    - npm: 10.2.4

[-] Packages
    - tauri [RUST]: 1.7.1
    - tauri-build [RUST]: 1.5.3
    - wry [RUST]: 0.24.10
    - tao [RUST]: 0.16.9
    - tauri-cli [RUST]: 1.6.0
    - @tauri-apps/api [NPM]: 1.6.0
    - @tauri-apps/cli [NPM]: 1.6.0

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist
    - devPath: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

No response

Yoruchiaki commented 1 day ago

I have the same problem