fix: devtools crashing on Linux in detach mode (#48926)

Backport of https://github.com/electron/electron/pull/48600
(8756e82b5f24dcda13225968c3655d37f73d195e)

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
Nikita Skovoroda
2025-11-13 23:28:25 +03:00
committed by GitHub
parent 5e9c442b2a
commit b32853b8aa

View File

@@ -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::NonClientFrameView>
ViewsDelegate::CreateDefaultNonClientFrameView(views::Widget* widget) {
return nullptr;
return std::make_unique<views::DefaultFrameView>(widget);
}
void ViewsDelegate::OnBeforeWidgetInit(