fix: do not activate app when showing a panel on Mac (#41750)

* fix: do not activate app when showing or focusing a panel on Mac

* restored panel activation test
This commit is contained in:
Mitchell Cohen 2024-04-12 08:27:59 -04:00 committed by GitHub
commit 05fba85aa3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 28 additions and 32 deletions

View file

@ -176,6 +176,8 @@ class NativeWindowMac : public NativeWindow,
void UpdateWindowOriginalFrame();
bool IsPanel();
// Set the attribute of NSWindow while work around a bug of zoom button.
bool HasStyleMask(NSUInteger flag) const;
void SetStyleMask(bool on, NSUInteger flag);