mirror of
https://github.com/electron/electron.git
synced 2026-01-08 23:18:06 -05:00
fix: devtools crashing on Linux in detach mode (#48600)
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
|
||||
#include "ui/views/widget/native_widget_aura.h"
|
||||
#include "ui/views/window/default_frame_view.h"
|
||||
|
||||
#if BUILDFLAG(IS_LINUX)
|
||||
#include "base/environment.h"
|
||||
@@ -62,7 +63,7 @@ gfx::ImageSkia* ViewsDelegate::GetDefaultWindowIcon() const {
|
||||
|
||||
std::unique_ptr<views::FrameView> ViewsDelegate::CreateDefaultFrameView(
|
||||
views::Widget* widget) {
|
||||
return nullptr;
|
||||
return std::make_unique<views::DefaultFrameView>(widget);
|
||||
}
|
||||
|
||||
void ViewsDelegate::OnBeforeWidgetInit(
|
||||
|
||||
Reference in New Issue
Block a user