![trop[bot]](/assets/img/avatar_default.png)
feat: support dip <-> screen conversion on Linux Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
17 lines
396 B
C++
17 lines
396 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/public/ozone_platform.h"
|
|
|
|
namespace x11_util {
|
|
|
|
bool IsX11() {
|
|
return ui::OzonePlatform::GetInstance()
|
|
->GetPlatformProperties()
|
|
.electron_can_call_x11;
|
|
}
|
|
|
|
} // namespace x11_util
|