Commit Graph
4 Commits
Author SHA1 Message Date
Skyler Lehmkuhl 7858158e9a Bump workspace version to 0.33.3
Lightningbeam's [patch.crates-io] requires 0.33.3 (matching the eframe
version it depends on). A patch whose version doesn't satisfy the
dependency requirement is silently IGNORED by cargo — it warns 'patch was
not used in the crate graph' and builds against the real crates.io crate
instead. So CI, which clones this branch, was building against stock egui
and failing on symbols only this fork has (CursorImage), four minutes into
the build and in an unrelated file.
2026-07-14 14:10:48 -04:00
Skyler Lehmkuhl 4bb7970234 Keep menus alive for submenu interaction 2026-07-14 13:22:48 -04:00
Skyler LehmkuhlandClaude Opus 4.8 f5477e30e5 Add custom cursor images (OS-composited, no frame lag)
A cursor painted into the egui scene is composited with the frame, so it
always trails the pointer by a frame or more. This adds a path to hand a
cursor image to the windowing system instead, where the compositor draws
it with no lag.

- egui: PlatformOutput::cursor_image + Context::set_cursor_image().
  CursorImage carries an id alongside the pixels so backends can detect
  "same cursor as last frame" without hashing or comparing the buffer.
- egui-winit: handle_platform_output() stashes the image;
  State::apply_pending_cursor_image() builds the winit CustomCursor and
  applies it. The split is necessary because winit only creates custom
  cursors from an ActiveEventLoop, which handle_platform_output has no
  access to. Rebuilds only when the id changes, and suppresses
  set_cursor_icon while a custom cursor is active so the two don't fight.
- eframe (wgpu): run_ui_and_paint already had the ActiveEventLoop and
  simply wasn't passing it down; now it does, and applies the cursor.
- eframe (web): ignore the new field for now; the web backend could
  express it as a CSS `cursor: url(...)`.

Supported by winit on X11, Wayland, Windows, macOS and Web. The glow
backend compiles unchanged but does not apply cursor images yet.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-14 13:02:51 -04:00
Skyler Lehmkuhl eb1756df3f ibus wayland fix 2026-02-16 03:36:31 -05:00