Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

fix: 优化全屏和最大化检测逻辑#482

Merged
JerryQAQ-233 merged 3 commits into
Class-Widgets:mainfrom
baiyao105:Fix_08
Mar 2, 2025
Merged

fix: 优化全屏和最大化检测逻辑#482
JerryQAQ-233 merged 3 commits into
Class-Widgets:mainfrom
baiyao105:Fix_08

Conversation

@baiyao105

@baiyao105 baiyao105 commented Mar 1, 2025

Copy link
Copy Markdown
Member

优化

  • 添加 get_process_name 使用 psutil 获取进程信息
  • 新增过滤进程:explorer.exe(无标题栏/Program Manager,桌面底状态), shellexperiencehost, searchui
  • 普通窗口:覆盖屏幕边界,窗口面积>=95%屏幕时返回全屏

重构

  • 修复 Win11_23H2 误判问题
  • 检查句柄有效性
  • 增加psutil ==> requirements.txt
    由我给openai打工()

#### 全字排除
       - Program Manager
       - Desktop
       - 空标题
- 重构 check_fullscreen() check_windows_maximize() 函数
- 引用 psutil 库获取进程信息
- 排除系统进程和系统窗口的隐式全屏
- 优化匹配逻辑
- 修复部分系统桌面环境下的误判(win11_23h2)全屏
@baiyao105

baiyao105 commented Mar 1, 2025

Copy link
Copy Markdown
Member Author

openai是我大跌,fix:#218
23h2桌面底 109c1a3ea0b0ebd5860e23efbd2596fa
24h2桌面底 image

@baiyao105

Copy link
Copy Markdown
Member Author

@RinLit-233-shiroko

@xuanxuan1231 xuanxuan1231 changed the title fix(check_fullscreen): 优化全屏和最大化检测逻辑 fix: 优化全屏和最大化检测逻辑 Mar 1, 2025
baiyao105

This comment was marked as resolved.

@JerryQAQ-233

Copy link
Copy Markdown
Contributor

请更改冲突。

@baiyao105 baiyao105 marked this pull request as draft March 2, 2025 04:18
@baiyao105 baiyao105 marked this pull request as ready for review March 2, 2025 04:26
@baiyao105

Copy link
Copy Markdown
Member Author

请更改冲突。

done

@JerryQAQ-233 JerryQAQ-233 merged commit 06efc36 into Class-Widgets:main Mar 2, 2025
pizeroLOL pushed a commit to pizeroLOL/Class-Widgets that referenced this pull request Aug 10, 2025
## 优化
- 添加 `get_process_name` 使用 `psutil` 获取进程信息
- 新增过滤进程:`explorer.exe`(无标题栏/Program Manager,桌面底状态),
`shellexperiencehost`, `searchui`
- 普通窗口:覆盖屏幕边界,窗口面积>=95%屏幕时返回全屏
## 重构
- 修复 Win11_23H2 误判问题
- 检查句柄有效性
- 增加`psutil` ==> `requirements.txt`
~~由我给openai打工()~~
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants