Skip to content

Revert "feat: 选区截图时保留屏幕笔迹"#418

Merged
CJKmkp merged 1 commit intobetafrom
revert-406-beta
Mar 28, 2026
Merged

Revert "feat: 选区截图时保留屏幕笔迹"#418
CJKmkp merged 1 commit intobetafrom
revert-406-beta

Conversation

@CJKmkp
Copy link
Copy Markdown
Member

@CJKmkp CJKmkp commented Mar 28, 2026

Reverts #406

@CJKmkp CJKmkp merged commit 91c2fa4 into beta Mar 28, 2026
1 check passed
@CJKmkp CJKmkp deleted the revert-406-beta branch March 28, 2026 09:23
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c2dd804707

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

{
// 屏幕截图
using (var originalBitmap = CaptureScreenAreaWithOptionalInk(screenshotResult.Value.Area, screenshotResult.Value.IncludeInk))
using (var originalBitmap = CaptureScreenArea(screenshotResult.Value.Area))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Hide window during area capture for insert flow

In CaptureScreenshotAndInsert, the capture call was switched to CaptureScreenArea(...), but this method no longer hides the main window before grabbing pixels. Because the window is restored immediately after selector close (before this call), the app chrome/toolbar/ink overlay can be captured into the inserted screenshot when it overlaps the selected region. This regresses the documented behavior of avoiding self-capture in the insert workflow.

Useful? React with 👍 / 👎.

}

using (var originalBitmap = CaptureScreenAreaWithOptionalInk(screenshotResult.Area, screenshotResult.IncludeInk))
using (var originalBitmap = CaptureScreenArea(screenshotResult.Area))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Prevent self-capture in add-to-whiteboard path

AddScreenshotToNewWhiteboardPage now captures with CaptureScreenArea(...) directly, which assumes callers already hid the main window. That assumption is false for the CaptureScreenshotAndInsert caller (it restores visibility before dispatching to this method), so choosing “添加到白板” from the selector can include the app UI in the captured image. The capture step should hide the window (or use a helper that does) to keep behavior consistent across callers.

Useful? React with 👍 / 👎.

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.

1 participant