2026-11-17 14:48:30 -08:00
|
|
|
# Local GPUI 0.2.2 patches
|
2026-11-17 02:08:15 -08:00
|
|
|
|
2026-11-17 14:48:30 -08:00
|
|
|
This directory vendors the published `gpui` 0.2.2 crate with the patches below.
|
|
|
|
|
The upstream license and revision are in `LICENSE-APACHE` and `.cargo_vcs_info.json`.
|
|
|
|
|
|
|
|
|
|
## Wayland idle redraw
|
2026-11-17 02:08:15 -08:00
|
|
|
|
|
|
|
|
Wayland compositors can withhold a pending frame callback after GPUI skips
|
|
|
|
|
presenting a clean frame. Later asynchronous view notifications make the scene
|
|
|
|
|
dirty but cannot cause a new buffer to be presented, leaving terminal output
|
|
|
|
|
and cursor timers visually stalled until unrelated output damage occurs.
|
|
|
|
|
|
|
|
|
|
The patch tracks when a configured Wayland window stops presenting. At the end
|
|
|
|
|
of an app effect cycle, an invalidated idle window draws and presents once,
|
|
|
|
|
clearing the idle flag. Normal compositor callbacks then resume. Dirty active
|
|
|
|
|
windows remain callback-paced; clean idle windows submit no frames. The flag
|
|
|
|
|
starts false, avoiding presentation before the initial Wayland configure.
|
|
|
|
|
|
|
|
|
|
The optional `scripts/check-wayland-idle.py` exercises an actual headless Weston
|
|
|
|
|
window and verifies output repaints after an idle interval without pointer
|
|
|
|
|
input or screenshots waking the compositor.
|
2026-11-17 14:48:30 -08:00
|
|
|
|
|
|
|
|
## macOS titlebar dragging
|
|
|
|
|
|
|
|
|
|
The macOS implementation of `start_window_move` passes the current mouse
|
|
|
|
|
event to AppKit's `performWindowDragWithEvent:`. This lets applications
|
|
|
|
|
initiate native dragging from a custom titlebar. The implementation follows
|
|
|
|
|
[upstream GPUI](https://github.com/zed-industries/zed/blob/main/crates/gpui_macos/src/window.rs).
|
|
|
|
|
|
|
|
|
|
## Text truncation during layout
|
|
|
|
|
|
|
|
|
|
Flex layout can measure a label at a narrow width before allocating its final
|
|
|
|
|
width. Each truncation now starts from the original styled text runs, and the
|
|
|
|
|
measurement cache includes the width used for truncation. This preserves the
|
|
|
|
|
full command titles in the palette when there is room to display them.
|