fix: setContentProtection(true)
after hide on Windows (#45889)
fix: content protection after hide on Windows
5789117
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
parent
179fde9278
commit
6eb4932c68
8 changed files with 60 additions and 11 deletions
|
@ -1170,6 +1170,10 @@ void NativeWindowMac::SetContentProtection(bool enable) {
|
|||
setSharingType:enable ? NSWindowSharingNone : NSWindowSharingReadOnly];
|
||||
}
|
||||
|
||||
bool NativeWindowMac::IsContentProtected() const {
|
||||
return [window_ sharingType] == NSWindowSharingNone;
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetFocusable(bool focusable) {
|
||||
// No known way to unfocus the window if it had the focus. Here we do not
|
||||
// want to call Focus(false) because it moves the window to the back, i.e.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue