We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71512ad commit e82b417Copy full SHA for e82b417
atom/browser/native_window_views.cc
@@ -487,6 +487,20 @@ void NativeWindowViews::SetFullScreen(bool fullscreen) {
487
NotifyWindowLeaveFullScreen();
488
}
489
490
+ // For window without WS_THICKFRAME style, we can not call SetFullscreen().
491
+ // This path will be used for transparent windows as well.
492
+ if (!thick_frame_) {
493
+ if (fullscreen) {
494
+ restore_bounds_ = GetBounds();
495
+ auto display =
496
+ display::Screen::GetScreen()->GetDisplayNearestPoint(GetPosition());
497
+ SetBounds(display.bounds(), false);
498
+ } else {
499
+ SetBounds(restore_bounds_, false);
500
+ }
501
+ return;
502
503
+
504
// We set the new value after notifying, so we can handle the size event
505
// correctly.
506
window_->SetFullscreen(fullscreen);
0 commit comments