Skip to content

Commit a3c2eb0

Browse files
committed
Fix nwjs#2657: force native frame for frame window
1 parent 3d2da3f commit a3c2eb0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/browser/native_window_aura.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,10 @@ NativeWindowAura::NativeWindowAura(const base::WeakPtr<content::Shell>& shell,
293293
params.use_system_default_icon = true;
294294
if (is_fullscreen_)
295295
params.show_state = ui::SHOW_STATE_FULLSCREEN;
296-
296+
#if defined(OS_WIN)
297+
if (has_frame())
298+
window_->set_frame_type(views::Widget::FRAME_TYPE_FORCE_NATIVE);
299+
#endif
297300
window_->Init(params);
298301

299302
// WS_CAPTION is needed or the size will be miscalculated on maximizing

0 commit comments

Comments
 (0)