rust-windowing / rust-windowing/winit

`Window::outer_position` returns incorrect Y coordinate for x11

Open
#2,791 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DS - x11
Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Description

The Y coordinate returned from Window::outer_position is 37 pixels off on gnome. This is because the frame extents are set to all zeros at this line.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/platform_impl/linux/x11/util/geometry.rs at the linked line where frame extents are set to zero. Reproduce Window::outer_position on GNOME under X11 and trace how those extents affect the Y coordinate; done means the returned coordinate no longer has the reported 37-pixel offset.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.