Wayland on ChromeOS from "Linux Containers" has cursor click offset including window decorations
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 30.6k
- Forks
- 2.1k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 72
Description
Describe the bug
When running the example egui/examples/hello_world_simple (and other example code) under chromeos inside it's Linux container feature (which forwards the display to the host system), if Wayland is used (ensured with ``DISPLAY='' cargo run`, but it's also the default) then the cursor clicks and cursor hover appear to be applied as if the window is shifted down by around 1/2 of the title bar width.
To Reproduce
Steps to reproduce the behavior:
- Setup a Linux container on chromeos. I've tested the trixy Linux container install. You'll need to install some X11 and Wayland dependencies with apt.
DISPLAY= cargo run -p hello_world_simple. Note that hovering the cursor on the title bar shows the window resize cursor about half way up the title bar instead of on the edge. Note that clicking on the buttons or in fields doesn't seem to work.WAYLAND_DISPLAY= cargo run -p hello_world_simple. Note that interaction appears to work.
Expected behavior
gui run using Wayland should interact correctly with the mouse like the one run via X11 does.
Desktop (please complete the following information):
- ChromeOS build details
Google Chrome: Version 148.0.7778.94 (Official Build) beta (64-bit)
Platform: 16640.22.0 (Official Build) beta-channel volteer
Channel: beta-channel
Firmware Version: Google_Voxel.13672.382.0
ARC Enabled: true
ARC: 15172085
Enterprise Enrolled: false
Developer Mode: false
-
I have also only tested with #crostini-containerless enabled in flags.
-
The Linux instance running within ChromeOS is Debian GNU/Linux 13.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with egui/examples/hello_world_simple using DISPLAY= cargo run -p hello_world_simple and compare it with WAYLAND_DISPLAY= cargo run -p hello_world_simple in a ChromeOS Linux container. Trace the Wayland window and pointer-coordinate handling, then verify that hover, title-bar resizing, button clicks, and field interaction align correctly with the cursor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100