
* refactor: use x11_util::IsX11() in BuildSubmenuFromModel() * refactor: use x11_util::IsX11() in ElectronDesktopWindowTreeHostLinux::OnBoundsChanged() * refactor: use skia_can_fall_back_to_x11 in x11_util::IsX11() it is identical in practice to electron_can_call_x11 and does not require a Chromium patch * chore: remove introduce_ozoneplatform_electron_can_call_x11_property.patch * refactor: use ui::GetOzonePlatformId() to test for x11
16 lines
395 B
C++
16 lines
395 B
C++
// Copyright (c) 2025 Microsoft GmbH.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include "shell/browser/linux/x11_util.h"
|
|
|
|
#include "ui/ozone/platform_selection.h" // nogncheck
|
|
|
|
namespace x11_util {
|
|
|
|
bool IsX11() {
|
|
static const bool is_x11 = ui::GetOzonePlatformId() == ui::kPlatformX11;
|
|
return is_x11;
|
|
}
|
|
|
|
} // namespace x11_util
|