fix: mouse doesn't work on frameless browserwindows (#30460)

Fixes #30402. This bug is from the "CanResize has been de-virtualized"
refactor in https://github.com/electron/electron/pull/29256

Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot]
2021-08-11 09:38:06 +09:00
committed by GitHub
parent d3462596fa
commit 68e87ea4f5

View File

@@ -217,9 +217,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper::Dictionary& options,
#endif
widget()->Init(std::move(params));
#if defined(OS_WIN)
SetCanResize(resizable_);
#endif
bool fullscreen = false;
options.Get(options::kFullscreen, &fullscreen);