Skip to content

fix(macos): prevent windows from disappearing during screenshot#4626

Draft
jilaiyuan wants to merge 3 commits intoflameshot-org:masterfrom
jilaiyuan:fix/macos-windows-disappear
Draft

fix(macos): prevent windows from disappearing during screenshot#4626
jilaiyuan wants to merge 3 commits intoflameshot-org:masterfrom
jilaiyuan:fix/macos-windows-disappear

Conversation

@jilaiyuan
Copy link
Copy Markdown

  • Replace showFullScreen() with frameless stay-on-top window to avoid creating a new macOS Space
  • Use native screencapture CLI for reliable screen capture on modern macOS (fallback to Qt grabWindow if native method fails)
  • Add NSScreenCaptureUsageDescription to Info.plist for proper permission handling Fixes macOS windows disappear when Flameshot initiates screenshot #3463

- Replace showFullScreen() with frameless stay-on-top window to avoid
  creating a new macOS Space
- Use native screencapture CLI for reliable screen capture on modern
  macOS (fallback to Qt grabWindow if native method fails)
- Add NSScreenCaptureUsageDescription to Info.plist for proper
  permission handling
Fixes flameshot-org#3463
@jilaiyuan jilaiyuan marked this pull request as ready for review April 8, 2026 04:48
- QClipboard::setPixmap() fails during widget destruction when the app
  loses focus, so use osascript instead
- Fix bug in old saveJpegToClipboardMacOS that used PNGf class for JPEG
  data by replacing it with a unified PNG clipboard saver
@jilaiyuan jilaiyuan marked this pull request as draft April 8, 2026 04:59
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.

macOS windows disappear when Flameshot initiates screenshot

1 participant