From: Cheng Zhao Date: Tue, 5 Aug 2014 10:49:55 +0000 (+0800) Subject: win: Disable the LegacyRenderWidgetHostHWND, fixes #506. X-Git-Tag: v0.15.3~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=cbb14f5ca21666d54373dc98b713613a751bb5cc;p=electron.git win: Disable the LegacyRenderWidgetHostHWND, fixes #506. --- diff --git a/atom/app/atom_main_delegate.cc b/atom/app/atom_main_delegate.cc index e77814b0..e8dbd0bd 100644 --- a/atom/app/atom_main_delegate.cc +++ b/atom/app/atom_main_delegate.cc @@ -74,6 +74,13 @@ void AtomMainDelegate::PreSandboxStartup() { // Add a flag to mark the start of switches added by atom-shell. command_line->AppendSwitch("atom-shell-switches-start"); +#if defined(OS_WIN) + // Disable the LegacyRenderWidgetHostHWND, it made frameless windows unable + // to move and resize. We may consider enabling it again after upgraded to + // Chrome 38, which should have fixed the problem. + command_line->AppendSwitch(switches::kDisableLegacyIntermediateWindow); +#endif + // Disable renderer sandbox for most of node's functions. command_line->AppendSwitch(switches::kNoSandbox);