Skip to content

fix(win32): WithWindowPos 模式下禁用窗口位置检查#1302

Merged
MistEO merged 1 commit intoMaaXYZ:mainfrom
ocsin1:fix/MessageInput
May 3, 2026
Merged

fix(win32): WithWindowPos 模式下禁用窗口位置检查#1302
MistEO merged 1 commit intoMaaXYZ:mainfrom
ocsin1:fix/MessageInput

Conversation

@ocsin1
Copy link
Copy Markdown
Contributor

@ocsin1 ocsin1 commented May 3, 2026

Summary by Sourcery

在使用 WithWindowPos 模式时,默认禁用窗口位置保护机制,并允许通过新的配置方法重新启用。

Bug 修复:

  • 通过跳过窗口位置检查(除非显式重新启用),防止在 WithWindowPos 模式下错误地阻止窗口移动。

增强功能:

  • 添加运行时开关,用于在需要不受限制的窗口移动的场景中启用或禁用窗口位置保护机制。
Original summary in English

Summary by Sourcery

Disable window position guard by default when using WithWindowPos mode and allow re-enabling it via a new configuration method.

Bug Fixes:

  • Prevent incorrect blocking of window movements in WithWindowPos mode by bypassing window position checks unless explicitly re-enabled.

Enhancements:

  • Add a runtime toggle to enable or disable the window position guard for scenarios requiring unrestricted window movement.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗨——我已经审查了你的修改,看起来非常棒!


Sourcery 对开源项目是免费的——如果你觉得我们的代码评审有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续评审。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@MistEO MistEO merged commit be64a9b into MaaXYZ:main May 3, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

电脑端-后台控制器无法使用 后台控制器抢委托失败

2 participants