Skip to content

v0.26.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 12:46
· 92 commits to main since this release
25a3613

Fixed

Platform

  • The system clipboard works on every Wayland compositor, GNOME's
    included, and in a Flatpak with no X server.
    On Wayland the clipboard is
    now the core protocol (wl_data_device) on the application's own
    connection, which every compositor implements. Before, it needed a
    data-control protocol, which GNOME does not offer, then an X server: with
    neither (GNOME under Flatpak's --socket=wayland), copy and paste worked
    only inside the application, without a word. Text and HTML are exchanged as
    before, under all the usual type names, and a copy stays available after
    the window that made it closes. X11, macOS and Windows keep arboard.
    On Wayland, copying now needs one of the application's windows to have
    keyboard focus, on every compositor: on KDE and wlroots compositors a copy
    made with no window focused used to work and now returns an error, leaving
    the clipboard as it was.
  • An application with no reachable system clipboard says so on stderr
    (teksilo-platform: the system clipboard is unavailable (…)) instead of
    falling back to an in-process clipboard silently.
  • External drag-and-drop on GNOME no longer depends on window order. The
    backend bound a wl_data_device per window, and Mutter keeps only one per
    application: a drag could reach a window's device that no longer heard
    anything. The application now binds one device, shared with the clipboard.
  • A paste or a drop from an application that never sends its data gives up
    after a few seconds
    instead of freezing the window.

Input

  • Dragging and selecting with a fast mouse no longer lag. With a 1000 Hz
    mouse on GNOME, dragging a tree row or a tab and selecting text fell to one
    or two frames a second, and hundreds of moves were still being handled
    after the button was released. A pointer move no longer lays out every
    window, and on X11 and Wayland the mouse moves of one event-loop turn are
    handled together.
  • Spring-loaded folders open and drop targets scroll at their edge with
    the pointer held still.
    A drop target's on_drag_tick now runs on every
    frame of a drag, also while the pointer rests or moves inside one row, and
    during a drag from another application. It used to run only when
    something else redrew the window.

Changed

Input

  • Behaviour change: on X11 and Wayland, the mouse moves of one
    event-loop turn reach widgets as one PointerMove at the latest position,
    with the earlier positions in PointerSample::coalesced, as pen moves
    already do. A widget the pointer crosses entirely within one turn gets no
    hover enter or leave, as on macOS and Windows, which are unchanged.
  • Behaviour change: a Slider's or ScrollBar's value signal, a drop
    indicator, and the rich-text editor's cursor and selection signals notify
    only when their value changes.
  • teksilo no longer asks winit for device events, where each raw motion woke
    the event loop: on Windows at once, and on X11 from the first time one of
    the application's windows gains or loses focus.

Core

  • A theme override (WidgetTree::set_theme_override) no longer copies the
    theme for every widget under it on each layout and paint: once per layout,
    and in a paint only when something under it repaints or uses
    after_paint.

Added

Platform

  • teksilo_platform::clipboard::system_clipboard, the system clipboard for
    the display winit connected to (what TeksiloAppBuilder installs).

Diagnostics

  • TEKSILO_IDLE_TRACE reports the mouse moves received, dropped, folded and
    dispatched (move_buffer={offered,dropped,folded,dispatched}).

Full Changelog: v0.25.0...v0.26.0