Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复缩放窗口不能跨越多个屏幕的错误 #812

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Conversation

Blinue
Copy link
Owner

@Blinue Blinue commented Jan 13, 2024

Close #808

这个错误是 #502 引入的,为了被 Wallpaper Engine 检测到而使用

ShowWindow(_hwndHost, SW_SHOWMAXIMIZED);

显示缩放窗口,但 Windows 中最大化窗口是不能跨越多个屏幕的。

修复方式是只有在单个屏幕上缩放才最大化,跨越多个屏幕时则使用无边框全屏。Wallpaper Engine 检测不到无边框全屏窗口,但这是它自己的错误,我们没必要牺牲太多。

@Blinue Blinue added the bug Something isn't working label Jan 13, 2024
@Blinue Blinue merged commit b52b54b into dev Jan 14, 2024
2 checks passed
@Blinue Blinue deleted the fix-multi-monitor branch January 14, 2024 01:25
eriforce pushed a commit to eriforce/Magpie that referenced this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scale Window Across Multiple Monitors
1 participant