* docs: document that getCursorScreenPoint() needs a Window on Wayland * feat: add IsWayland() helper * fix: Wayland crash in GetCursorScreenPoint() fix: support Screen::GetCursorScreenPoint() on X11
15 lines
399 B
C++
15 lines
399 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.
|
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_LINUX_X11_UTIL_H_
|
|
#define ELECTRON_SHELL_BROWSER_LINUX_X11_UTIL_H_
|
|
|
|
namespace x11_util {
|
|
|
|
[[nodiscard]] bool IsX11();
|
|
[[nodiscard]] bool IsWayland();
|
|
|
|
} // namespace x11_util
|
|
|
|
#endif // ELECTRON_SHELL_BROWSER_LINUX_X11_UTIL_H_
|