Blinue / Magpie

An all-purpose window upscaler for Windows 10/11.
GNU General Public License v3.0
8.89k stars 474 forks source link

Cursor jumps to other monitor when hovering an overlayed window #969

Open Sirush opened 1 month ago

Sirush commented 1 month ago

Magpie version 程序版本

0.11.1

Windows version 系统版本

win10 22H2

Related screenshot (optional) 相关截图(可选)

https://github.com/user-attachments/assets/8ed8bf02-f385-438b-b6f6-31ea053c3da2

Reproduction steps 复现步骤

Have the game in fullscreen using magpie, and use an overlay window, for example JL or windows built-in On-Screen Keyboard. Then mouse over the overlay, sometimes the cursor will be seen for a single frame on the other monitor, or sometimes it will jump there completely and you will have to move it back to your main monitor manually. I've attached a video showing the effect (ignore the double cursor, it's just my recording software) of the mouse completely jumping to the other monitor when simply hovering JL. I've reproduced this with Magpie 0.11.0 and 0.11.1, but it worked correctly in 0.10.6 and other previous versions.

Log files 日志文件

magpie.log

Blinue commented 1 month ago

This is likely because the overlay window has a higher integrity level than Magpie, and due to UIPI, the OS prevents Magpie from changing the cursor position. I’ll look into this when I have some free time.