zed/crates/gpui_linux
迷渡 961f4f2024
gpui: Refresh mouse position after bounds changes (#60421)
## Summary

- Refresh GPUI's cached mouse position when window bounds change so
hover hit-testing uses the current cursor position after live resize.
- Return X11 mouse positions in window-relative logical pixels to keep
`PlatformWindow::mouse_position()` consistent with other backends.

Fixes #57354

## Testing

- `cargo fmt -p gpui -p gpui_linux`
- `cargo check -p gpui_linux`
- `cargo check -p gpui`

## Suggested .rules additions

- In GPUI platform backends, `PlatformWindow::mouse_position()` should
return window-relative logical pixels; use separate APIs or fields for
global/device-pixel coordinates.

Release Notes:

- Fixed incorrect hover state while resizing GPUI windows.
2026-07-07 10:59:45 +00:00
..
src gpui: Refresh mouse position after bounds changes (#60421) 2026-07-07 10:59:45 +00:00
Cargo.toml Remove gpui's dependency on async-process (#59358) 2026-06-16 13:47:55 +00:00
LICENSE-APACHE