Skip to content

viewport 0.6.0

Choose a tag to compare

@codebam codebam released this 13 Nov 02:00
· 157 commits to main since this release
v0.6.0
d04b3f3

First published release since 0.4.0. 0.5.0 was cut in the tree but never
made it to the AUR or to GitHub Releases, so this one carries everything from
both. The full list is in the
changelog; the
headline is below.

The window that opened invisible until Mod4

The reported bug: a new window — most visibly the terminal a GPG signing prompt
is spawned in — would open as a thin sliver at the edge of the monitor, or not
at all, and stay that way until something else forced a relayout (press Mod4 and
the bar's animation, for instance). Three separate faults were found and fixed.

  • The focus race. The scrolling strip scrolls to whichever window it
    believes is focused while it renders, and the shell only learned about a
    focus it had just requested when the compositor echoed view.focused back —
    a layout later at best, and in the reported case nine seconds later. The
    placement pass therefore put the new column off the edge of the screen and it
    stayed there until an unrelated relayout. The shell now takes the focus it is
    about to be given before placing the window, so the pass that places it also
    scrolls it into view.
  • The empty crop. A crop with no area is how the scrolling layout hides a
    column scrolled out of its strip. The compositor had begun drawing those
    uncropped "to be safe", which is how a window from one monitor appeared on the
    monitor beside it. An empty crop is honoured again; only a crop that has area
    yet misses the window entirely — which the shell cannot produce from a real
    intersection — is dropped, with a warning.
  • The lost-frame diagnostics. A placed window that no submitted frame
    carried is now reported and redrawn; a window the shell itself cropped away is
    no longer counted as lost; and a fade left at zero is paid out rather than
    leaving a see-through hole with a frame around it.

Hyprland parity

  • Colour: ICC display profiles are applied as a 33³ cube after the
    parametric transform (with VCGT ramps composed underneath any client ramp),
    render:cm_enabled switches the pipeline off, render:cm_sdr_eotf says what
    undeclared SDR is, render:cm_auto_hdr switches an output into HDR for
    fullscreen HDR content (with no_auto_hdr), and windows carry tonemap rules
    in on/off/clamp/limited.
  • Motion: the configurable motion tree — windows, windowsIn,
    windowsMove, workspaces, layers, border — with per-leaf style, pace,
    cubic-bezier or physical spring, inheriting down the tree, plus per-workspace
    animation rules.
  • Groups: drag_into_group, merge_groups_on_drag,
    group_on_movetoworkspace, group.lock and auto_group, with the tab strip
    as a shell-drawn groupbar.
  • Cursors: hyprcursor themes, behind cursor.enable_hyprcursor, with the
    HYPRCURSOR_THEME/HYPRCURSOR_SIZE precedence and XCursor fallback.
  • Workspaces: decorate, float_gaps and layout_opts rules on top of
    no_border and no_rounding.

Also in this jump, from the unpublished 0.5.0: the shell-drawn lock screen, the
settings panel, a keyboard for every surface, the screen magnifier, the calendar
and locale-aware clock, X clients' emulated input, animated wallpapers,
idle.lock_delay, and the Smithay fork rebased onto upstream.

Packaging

Six AUR packages: each engine as a source recipe that builds the tagged tree and
a -git recipe that follows main, all six at this release. No binary
artifacts are published: the three -bin packages have been deleted from the
AUR and the binary assets on older releases removed, so install from source (or
build from the tag) instead.

0.6.0 changelog

Fixed

  • A new window is scrolled into view by the same layout pass that places it,
    instead of waiting for the compositor to echo the focus request back. The
    scrolling strip scrolls to whichever window it believes is focused while it
    renders, and the shell only learned about a focus it had just asked for when
    that echo arrived — a layout later at best, and in the reported case nine
    seconds later, leaving a signing prompt as a ten-pixel column at the edge of
    the monitor until something else (pressing Mod4) relaid the workspace out.
    The shell now takes the focus it is about to be given before placing the
    window; the echo still arrives and still corrects the rest of the state.
  • A window the shell placed no longer stays invisible when no submitted frame
    ever carries it. The compositor now records when a view.layout placed a
    window and when a queued flip last carried it, and a placement the frames
    have not caught up with after 250ms gets a warning, a forced redraw and a
    second request before it is reported — with whether the rectangle overlaps
    any output at all, which tells a shell placement fault from a frame-building
    one. This is the reported "new window is not drawn until Mod4 animates the
    bar in": the window was placed, so the placement watchdog had stood down,
    and a client that had already painted had nothing left to commit. Bounded to
    three steps per placement, so a genuinely undrawable window costs log lines
    rather than a redraw per turn of the loop.
  • A window the shell faded to zero opacity and never raised again no longer
    stays see-through with only its frame around it. Frames do carry such a
    window, which is why the watchdog above never saw it: what they carry is a
    fully transparent window, with the desktop showing through the hole where
    its contents should be. The shell's fade is a debt — it sends
    view.opacity 0 and is expected to raise it frame by frame — so a visible,
    placed window drawn at zero for longer than any fade takes is paid out
    opaque, with a warning naming how long it waited. The watch survives a blank
    or a lock rather than being lost with the screen. Dimming a layout does is
    untouched: a window the shell means to keep dim rests above zero.
  • A view.layout whose crop for the window has area but does not meet it is
    dropped and the window drawn uncropped, with a warning naming the crop — that
    cannot be the shell's own intersection with its reserved area, so it is a
    disagreement between the two. An empty crop is honoured instead: that is
    how the scrolling layout hides a column scrolled out of its strip, and
    drawing it anyway is how one monitor's column gets painted onto the next.

Added

  • render:cm_enabled (Hyprland's master switch, absent on): off means no
    wp_color_management_v1 global, every client taken as sRGB, every output
    driven as sRGB, HDR neither offered nor kept on, and ICC transforms not
    applied — the profile's calibration ramp still is. Read at startup, like
    Hyprland's, because a Wayland global cannot be taken back from clients that
    already bound it; a reload that changes it says a restart is needed.
  • Per-window tonemap rules (Hyprland's rule of the same name): on (the
    default) and limited fold the part of a window's range a dimmer output
    cannot show into the headroom that is left, so highlights keep their detail
    and mid-tones keep their slope; clamp scales the source peak onto the
    target's and clips what remains; off leaves the clip. The mode rides on the
    surface into the renderer, which carries it in the push block, so an SDR
    window on an SDR screen takes the ordinary path and pays one comparison for
    the feature existing.
  • render:cm_sdr_eotf — what SDR content is assumed to be encoded with when a
    client declares no image description: default/srgb (the protocol's
    answer), gamma22 for undeclared buffers, or gamma22force which takes
    declared sRGB as a pure power curve as well. An output with an ICC profile
    always assumes sRGB, because the profile's cube maps sRGB into that panel;
    the assumption rides on a surface's buffers, so a reload takes effect at each
    window's next commit.
  • Automatic HDR, Hyprland's render:cm_auto_hdr (0 off, 1 switch to HDR,
    2 the same with EDID primaries, absent is 1): a fullscreen window whose
    buffers declare an HDR transfer function — PQ or HLG, through
    wp_color_management_v1 or a Windows HDR description — switches the output
    it covers into HDR, and the output goes back when the window leaves
    fullscreen or closes. Only a switch the compositor made is undone, so a
    display put in HDR by hand stays there. A no_auto_hdr window rule exempts a
    window, and so does a connector that cannot do BT.2020 with PQ. The decision
    runs on the loop turn rather than inside the commit handler that notices the
    window change, because switching a screen costs two atomic commits.
  • ICC display profiles are applied, not just read. The transform a profile
    describes is baked into a 33³ cube; the Vulkan renderer uploads it once per
    profile and samples it after the parametric conversion, so each output is
    drawn in its own panel's space rather than sRGB. A display without a profile
    keeps exactly the pipelines it had — the cube variants are separate pipelines
    built on demand, the compositor states the frame's cube before every draw,
    and the renderer skips an upload for a cube it already holds. GLES and YCbCr
    video keep the parametric path; both gaps are written down in the renderer's
    README.
  • The rest of Hyprland's group rules: group.drag_into_group (a window dropped
    on a group becomes one of its tabs), group.merge_groups_on_drag (drag a
    group by its tab strip and drop it on another to merge the two), and
    group.group_on_movetoworkspace (a window moved to a workspace whose only
    window on display is a group joins it). The tab strip is the groupbar a group
    is dragged by, and the dragged group and its drop target are shown while the
    hand moves. group.lock refuses all of them the way it refuses auto_group.
  • Per-workspace animation and layout_opts rules. animation names the
    style a switch to that workspace runs (the motion.workspaces styles), and
    wins over the leaf's own style for that workspace only. layout_opts is the
    layout's own string map for the workspace, handed to it as context.opts —
    the hook a layout_extensions script is configured through — and both are
    written back by config.save.
  • The motion tree: motion.windows, motion.windows_in, motion.windows_move
    and motion.workspaces, each with its own style, duration, ease,
    four-number bezier or physical spring (mass/stiffness/damping, integrated
    closed-form), inheriting pace, curve, spring and the on/off switch from
    windows and then from the block. Named styles for window entrances (fade,
    popin, zoom, slide, slidefade, gnomed) and for workspace switches
    (fade, slide, slidefade), with a window's entrance scale composed onto
    the layout's own scale and reported to the compositor. Springs drive the
    frame-driven animations — entrances and the relayout slide; CSS flex
    transitions keep their curve. layers and border leaves are there too: the
    shell's own furniture (bar, notifications, panel and screen-share openings)
    and a window's frame changing colour. windowsOut remains for a later
    change — a closing window is unmapped before the shell hears about it, so the
    fade has to be compositor-side.
  • Per-workspace decorate and float_gaps rules (Hyprland's workspace rules of
    the same names). decorate: false draws a workspace's windows bare — no
    border, shadow or groupbar — while rounding stays its own rule, and
    float_gaps insets the work area floating windows are centred in and clamped
    to, in the css_gaps spelling (one to four numbers). Both travel to the shell
    with the rest of the workspace policy and are saved by config.save.
  • hyprcursor themes are read: a manifest plus one zip per shape, per-size
    images, per-cursor resize methods (nearest, bilinear, none), animation
    delays, define_override aliases and nominal_size, from
    ~/.local/share/icons, ~/.icons and $XDG_DATA_DIRS/icons. Enabled by
    cursor.enable_hyprcursor (absent is on, Hyprland's default), named by
    HYPRCURSOR_THEME/HYPRCURSOR_SIZE or the configured cursor theme, and
    falling back to the XCursor theme of the same name for a shape hyprcursor
    does not answer — SVG shapes are the one kind this does not render.
  • keyboard.numlock_by_default latches Num Lock on when the session starts
    (Hyprland's input:numlock_by_default). A startup setting applied once after
    the configured keymap is on the seat; a reload or a later config.keyboard
    never forces it back on over a manual toggle.
  • Per-workspace no_border and no_rounding rules (Hyprland's workspace rules
    of the same names). no_border drops the coloured frame but keeps the focus
    ring; no_rounding squares the frame and reports square so the compositor
    stops cropping the client to a rounded corner. Both are carried through
    config.workspaces and persisted by config.save.