mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
fix: screen.getCursorScreenPoint() crash on Wayland (#50104)
* docs: document that getCursorScreenPoint() needs a Window on Wayland Co-authored-by: Charles Kerr <charles@charleskerr.com> * feat: add IsWayland() helper Co-authored-by: Charles Kerr <charles@charleskerr.com> * fix: Wayland crash in GetCursorScreenPoint() fix: support Screen::GetCursorScreenPoint() on X11 Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -110,6 +110,8 @@ Returns [`Point`](structures/point.md)
|
||||
|
||||
The current absolute position of the mouse pointer.
|
||||
|
||||
Not supported on Wayland (Linux).
|
||||
|
||||
> [!NOTE]
|
||||
> The return value is a DIP point, not a screen physical point.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user