Magpie icon indicating copy to clipboard operation
Magpie copied to clipboard

Magpie can't always detect the game window is in foreground

Open rampaa opened this issue 3 years ago • 5 comments

Magpie version 程序版本

0.10.1

Windows version 系统版本

Windows 10 22H2

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

https://user-images.githubusercontent.com/25622653/229816615-72980c1b-db03-410a-8a7f-5ae6d6bc039d.mp4

Reproduction steps 复现步骤

  1. Add a Magpie profile for a game
  2. Enable "Auto scale when in foreground"
  3. Scale the game with Magpie
  4. Use Windows+D (or Alt+Tab and bring another window to the foreground) to disable the scaling of the game window
  5. Bring the game window back to the foreground by clicking its icon on the taskbar (or by using Alt+Tab again)

The game window will not be scaled by Magpie (seemingly randomly). You might need to re-try the 4th and 5th steps many times before reproducing the issue because it happens quite randomly. It randomly happened with nearly every game I've tried Magpie with. "Capture method" doesn't seem to matter either, I can reproduce the issue with all the capture methods. I also don't think Magpie is producing any logs when it fails to detect that the game is in the foreground.

Log files 日志文件

magpie.log

rampaa avatar Apr 04 '23 14:04 rampaa

Does v0.10.0 have this issue?

Blinue avatar Apr 06 '23 01:04 Blinue

Yes.

rampaa avatar Apr 06 '23 03:04 rampaa

Is there still an issue if you don't minimize the window (i.e., only use Alt+Tab)?

Blinue avatar Apr 06 '23 04:04 Blinue

I think I was able to reproduce the issue with Alt+Tab as well. To make sure I can try it out again when I am home.

rampaa avatar Apr 06 '23 04:04 rampaa

Reproducing it with Alt+Tab was significantly harder.

https://user-images.githubusercontent.com/25622653/230449822-448e0353-0290-4688-b063-f19f5579127c.mp4

rampaa avatar Apr 06 '23 17:04 rampaa