Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add Window::SetContentProtection (exclude from screen capture)

Đang mở
#71 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
desktop, operating-systems

Hướng nghiên cứu

Start by locating the Window API and its Windows, macOS, and Linux platform implementations. Review SetWindowDisplayAffinity and NSWindow.sharingType, including the stated version and ScreenCaptureKit limitations. Done means exposing Window::SetContentProtection(bool), applying the requested platform behavior, and documenting that Linux does not support it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Add Window::SetContentProtection(bool) so the window's content is excluded from screenshots and screen recording, like Electron's win.setContentProtection():

  • Windows: SetWindowDisplayAffinity(hwnd, WDA_EXCLUDEFROMCAPTURE) (Windows 10 2004+, else WDA_MONITOR)
  • macOS: NSWindow.sharingType = NSWindowSharingNone (note: not honoured by ScreenCaptureKit on recent macOS)
  • Linux: not available; document it

Background:

  • leanflutter/window_manager#215: equivalent of Electron's setContentProtection
Ngôn ngữ chính
C++
Star
34
Fork
7
Merge trung bình
3 ngày 1 giờ
Pull request đã merge (30 ngày)
1

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của libnativeapi/nativeapi

Tất cả issue của libnativeapi/nativeapi

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.