tilo-winit 0.5.1

winit 0.30.13 (https://github.com/rust-windowing/winit) with the additions the Tilo SDK uses: synthetic key events, Wayland drag sources and swipe gestures, a macOS quit request. Tilo's fork; see TILO-FORK.md.
docs.rs failed to build tilo-winit-0.5.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

tilo-winit

Tilo's fork of the crates.io winit 0.30.13, published as tilo-winit so the Tilo SDK can be published with it. The library is still named winit, so code keeps writing winit::…. Upstream: https://github.com/rust-windowing/winit (Apache-2.0, unchanged).

The additions the SDK uses are KeyEvent::synthetic, Wayland drag sources (start_drag, whose offers are bytes or a file streamed when asked, DragData), swipe gestures, Wayland pen tablets (WindowEvent::PenSample before each pointer event a stylus makes), and a macOS quit request (set_quit_request_window), and a surface-bound private text-input acknowledgement (WindowEvent::PrivateIme and WindowExtWayland::private_text_input), and a field's whole Wayland text-input content type (WindowExtWayland::set_ime_content_type); vendor/PATCHES.md and the standalone history vendor-upstream/winit-0.30.13 in the Tilo repository list them commit by commit. When a winit release carries them, the SDK moves back to winit and this fork ends.

The private text-input extension carries opaque field stamps, operation serials and outcomes only. Final text continues through standard text-input-v3. It grants neither microphone access nor input-method ownership; the compositor must validate its original focused surface and the SDK must acknowledge the original renderer's guarded edit. Ordinary browser composition stays disabled outside an admitted dictation session.

WindowEvent::PenSample and WindowEvent::PrivateIme are variants upstream does not have, so a crates.io crate that matches every WindowEvent does not build against this fork. The workspace has none: Smithay's backend_winit, the one that did, is not enabled.

On X11 and Wayland, a Ctrl, Alt or Super chord on a non-Latin letter takes as its logical key the Latin character another layout of the keymap puts on the key, as GTK does, so shortcuts work whichever source is typing.

WindowEvent::KeyboardLayoutChanged carries an immutable, bounded snapshot of the actual focused Wayland seat keymap's effective symbols and received modifier masks/group. It contains configuration for physical positions, never composed text or key history. Keymap, focus-enter and modifier events enqueue their exact snapshot before further state changes; unavailable keymaps revoke it. Other platforms do not invent a snapshot.

A window can be a surface on a layer of an output instead of a toplevel (with_layer_surface). The role lives in window/surface.rs; the toplevel requests a layer surface has no notion of are ignored for it.