Upstream: crates/rune/README.md § Edge overlays (App::overlay, overlay.rs, platform/layer_shell.rs) at 65f8eb43f710, MIT © Anomaly. Bundled by build-rune-apps; links point at this snapshot or at GitHub at that rev.

Edge overlays (App::overlay, overlay.rs, platform/layer_shell.rs)

app.overlay(OverlaySpec { name, size, edge, margin, align, inset, interactive, view }, state) -> OverlayHandle<T> adds a surface to that app's loop with its own state type: transparent, above every app, never keyboard-focused, never activating the app, on the top or bottom edge of the primary display, centred or inset points from a side. Clicks pass through unless interactive. show(), hide(), place(edge, margin), set_align(align, inset), resize(size) and update(|t, tx| ..) work from any thread; availability() reports Unavailable where the platform can't do it. An overlay is one more host on the event loop (it shares the GPU pool) but never keeps the loop alive alone.

  • Wayland: a zwlr_layer_shell_v1 surface on winit's display (overlay layer, keyboard none, exclusive zone 0, empty input region), buffer scale from preferred_buffer_scale; hidden means destroyed. Interactive overlays are unavailable there (pointer events for a surface on a private queue aren't wired).
  • X11: an override-redirect notification window, empty input shape unless interactive.
  • macOS: winit's view (and the Metal layer wgpu draws into) moves into a non-activating NSPanel (NonactivatingPanel, becomesKeyOnlyIfNeeded) at status level (25) on every Space incl. full-screen ones, ordered front with orderFrontRegardless; it ignores the mouse unless interactive. Clicks still reach Rune through winit's view (platform/macos.rs).
  • Windows: a topmost tool window with WS_EX_NOACTIVATE (plus WS_EX_TRANSPARENT|WS_EX_LAYERED unless interactive), shown with SW_SHOWNOACTIVATE; a bottom overlay sits above the taskbar (platform/win32.rs).
  • Checked under headless sway (layer shell, and Xwayland for X11) and on macOS (panel level, bounds, hide and reshow). Windows builds are checked with cargo xwin clippy only.
  • Tx::copy works in overlays (a meeting capsule's Copy button).
  • Unsupported: interactive overlays on Wayland, hover in a non-key macOS panel (mouse-moved events go to the key window), per-monitor placement.