fix: initial frame on frameless windows

This commit is contained in:
Shelley Vohr
2021-09-02 14:47:12 +02:00
parent 8d86d84ff5
commit 0bb0c1f8bf

View File

@@ -222,6 +222,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper::Dictionary& options,
params.delegate = this;
params.type = views::Widget::InitParams::TYPE_WINDOW;
params.remove_standard_frame = !has_frame();
params.can_resize = resizable_;
if (transparent())
params.opacity = views::Widget::InitParams::WindowOpacity::kTranslucent;