2025-05-02 10:31:45 +02:00
|
|
|
// 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"
|
|
|
|
|
2025-05-13 23:38:35 -05:00
|
|
|
#include "ui/ozone/platform_selection.h" // nogncheck
|
2025-05-02 10:31:45 +02:00
|
|
|
|
|
|
|
namespace x11_util {
|
|
|
|
|
|
|
|
bool IsX11() {
|
2025-05-13 23:38:35 -05:00
|
|
|
static const bool is_x11 = ui::GetOzonePlatformId() == ui::kPlatformX11;
|
|
|
|
return is_x11;
|
2025-05-02 10:31:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace x11_util
|