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

防止窗口启动时不在可见区域 #761

Merged
merged 1 commit into from
Nov 22, 2023
Merged

防止窗口启动时不在可见区域 #761

merged 1 commit into from
Nov 22, 2023

Conversation

Blinue
Copy link
Owner

@Blinue Blinue commented Nov 22, 2023

fix #706

创建主窗口前检查起始位置是否存在屏幕。具体而言检查两个点:

  1. 窗口中心点:确保大部分窗口内容可见
  2. 上边框中心点:确保大部分标题栏可见

如果窗口不在任何屏幕上,则由 OS 决定启动位置。

@Blinue Blinue added the bug Something isn't working label Nov 22, 2023
@Blinue Blinue merged commit c32a7c9 into dev Nov 22, 2023
2 checks passed
@Blinue Blinue deleted the fix-initial-pos branch November 22, 2023 12:35
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
1 participant