From 12b90a23049e583c1b8b2d8ed8b8443b1148bf66 Mon Sep 17 00:00:00 2001 From: Shubham Date: Thu, 15 Jun 2017 18:05:58 -0400 Subject: [PATCH] :bug: store current level fix --- atom/browser/native_window_mac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 87fa53f5618..100baf96a07 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -208,7 +208,7 @@ bool ScopedDisableResize::disable_resize_ = false; - (void)windowWillMiniaturize:(NSNotification*)notification { NSWindow* window = shell_->GetNativeWindow(); // store the current status window level to be restored in windowDidDeminiaturize - level_ = NSStatusWindowLevel; + level_ = [window level]; [window setLevel:NSNormalWindowLevel]; }