From bb0ac688b2d1d19904370a33a49a19c75a31e129 Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Sat, 27 Feb 2016 03:07:53 +0100 Subject: [PATCH] Reverted SetFullscreenable disabling maximize button on Windows and removed that from the docs. --- atom/browser/native_window_views.cc | 3 --- docs/api/browser-window.md | 3 +-- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/atom/browser/native_window_views.cc b/atom/browser/native_window_views.cc index 4b3b32024df0..c74e88081503 100644 --- a/atom/browser/native_window_views.cc +++ b/atom/browser/native_window_views.cc @@ -497,9 +497,6 @@ bool NativeWindowViews::IsMaximizable() { } void NativeWindowViews::SetFullScreenable(bool fullscreenable) { - #if defined(OS_WIN) - FlipWindowStyle(GetAcceleratedWidget(), false, WS_MAXIMIZEBOX); - #endif fullscreenable_ = fullscreenable; } diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 96ce955db595..d38a5b7083df 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -59,8 +59,7 @@ It creates a new `BrowserWindow` with native properties as set by the `options`. other windows. Default is `false`. * `fullscreen` Boolean - Whether the window should show in fullscreen. When explicity set to `false` the fullscreen button will be hidden or disabled - on OS X, or the maximize button will be disabled on Windows. Default is - `false`. + on OS X. Default is `false`. * `fullscreenable` Boolean - Whether the maximize/zoom button on OS X should toggle full screen mode or maximize window. Default is `true`. * `skipTaskbar` Boolean - Whether to show the window in taskbar. Default is