mirror of
https://github.com/electron/electron.git
synced 2026-01-26 15:58:07 -05:00
Compare against NSNormalWindowLevel in IsAlwaysOnTop
This commit is contained in:
@@ -968,7 +968,7 @@ void NativeWindowMac::SetAlwaysOnTop(bool top, const std::string& level) {
|
||||
}
|
||||
|
||||
bool NativeWindowMac::IsAlwaysOnTop() {
|
||||
return [window_ level] == NSFloatingWindowLevel;
|
||||
return [window_ level] != NSNormalWindowLevel;
|
||||
}
|
||||
|
||||
void NativeWindowMac::Center() {
|
||||
|
||||
Reference in New Issue
Block a user