Vertical positioning of buttons slightly off with Wine.
- Dominant language
- Rust
- Stars
- 30.6k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 72
Description
**Describe the bug**
On Windows under Wine emulation, draw positions seem to be off by about one line height vs. where the cursor is pointing? So clicking on buttons doesn't work.
Works fine on Linux and reportedly works fine on real Windows, but not on Linux emulating Windows with Wine, which is how I debug Windows targets.
**To Reproduce**
Steps to reproduce the behavior:
1. On Linux/Ubuntu:
git clone https://github.com/John-Nagle/ui-mock.git
cd ui-mock
cargo build --examples --target x86_64-pc-windows-gnu
cd target/x86_64-pc-windows-gnu/debug
wine ui-mock.exe
2. Pick one of the big metaverse box buttons. Doesn't matter which one
5. Try to log in. This is just a GUI test; login info is accepted but does nothing.
6. Notice that arrow has to be above the box to be clicked on.
7. Once "logged in", try items in the top menu bar. Observe that the cursor position has to be above the button by about one character height, not over it.
**Screenshots**
If needed, ask.
**Desktop (please complete the following information):**
- OS: Ubuntu 22.04 LTS,
- wine 10.0
**Additional context**
Worked in previous egui and wine versions.
Contributor guide
Research direction
Start by reproducing the issue with the ui-mock example using the documented Cargo target and Wine 10.0 on Ubuntu 22.04. Compare cursor and button positions in the top menu and metaverse boxes; done means buttons activate when clicked at their visible locations under Wine without regressing Linux or Windows behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100