plugins/screenshot: Respect excludeFromCapture property

plugins/screenshot: respect excludeFromCapture flag

The excludeFromCapture property, introduced in MR !8442 (merged) was not applied to static screenshots. It was assumed that users could simply minimize unwanted windows.

This creates a privacy inconsistency for windows that should be hidden from all forms of capture. This commit updates the screenshot plugin to respect the excludeFromCapture flag for consistency and privacy between screencasts and screenshots.

This builds upon the work in MR !8442 (merged) (Exclude from capture) and the logic introduced by Xaver Hugl in the 'hide requesting app's windows' patch to make sure the behavior is consistent across the entire screenshot/screencast stack.

===

/cc @teams/vdg @teams/usability

"Hide from Screencast" has been renamed to "Hide from Screen Capture" for consistency.

image image

Edited by Elliot Flint

Merge request reports

Loading