mirror of
https://github.com/electron/electron.git
synced 2026-02-19 03:14:51 -05:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user