mirror of
https://github.com/electron/electron.git
synced 2026-01-26 07:48:08 -05:00
Simplify checking for NSFullScreenWindowMask
This commit is contained in:
@@ -47,7 +47,7 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
|
||||
return;
|
||||
}
|
||||
|
||||
if (([self.window styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask) {
|
||||
if (self.window.styleMask & NSFullScreenWindowMask) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ const NSAutoresizingMaskOptions kDefaultAutoResizingMask =
|
||||
return;
|
||||
}
|
||||
|
||||
if (([self.window styleMask] & NSFullScreenWindowMask) == NSFullScreenWindowMask) {
|
||||
if (self.window.styleMask & NSFullScreenWindowMask) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user