Skip to content

viewport 0.9.0

Choose a tag to compare

@codebam codebam released this 17 Nov 21:00
· 60 commits to main since this release
v0.9.0
df22069

Hyprland's motion tree, finished — windowsOut, fadeDim and fadePopups,
all three drawn by the compositor rather than the page — and the policy
leaves around it: the window-not-responding dialog, auto_consuming and
per-device bind flags, the keep_aspect_ratio and confine_pointer window
rules, a warp policy for workspace switches, and virtual monitors that plug
into a running session on any backend. chromium becomes the default
backend: nixpkgs' own browser, tracking every security update it ships. The
full list is in the
changelog; the
headline is below.

Motion

  • motion.windows_out — a closing window fades over its last frame. The
    compositor photographs the last frame it drew of the window into a buffer
    it owns and fades that out, because the client destroys its surface before
    the shell hears of the close. The leaf takes fade, slide, slidefade
    or zoom, a duration, and a curve or physical spring, inheriting from
    motion.windows then the block's own pace; absent is a fifth of a second
    fading. The snapshot is taken in the render pass on every backend, and a
    window nobody can see — minimized, hidden, capture-forbidden, or a locked
    session — is removed without a ghost.
  • motion.fade_dim and motion.fade_popups. Focus moving dims an
    inactive window smoothly rather than in one frame, and a popup fades in as
    it arrives. Both are compositor-drawn and reuse the close fade's curve and
    spring arithmetic; they inherit from the motion block's root, not
    windows.
  • A warp policy. cursor.warp_on_change_workspace moves the pointer to
    the centre of the window focused on the new workspace — 0 (the default)
    leaves it where it was, 1 warps, 2 forces the warp even when
    cursor.no_warps, the master switch over compositor-initiated warps, is
    set. A client's own pointer warp and a scripted input.pointer are asks,
    not warps, and are untouched.

Policy and rules

  • misc.enable_anr_dialog — ask about a window that stops responding.
    The compositor pings each mapped xdg window on a timer; one that does not
    answer within five seconds gets a wait-or-force-quit dialog over the
    windows. Force quit uses the protocol's own unresponsive error to
    disconnect the client; a window that answers again takes its dialog down.
    Absent is on.
  • Two bind flags. auto_consuming+ consumes the key only when the
    dispatcher has something to act on — a close or focus with no focused
    window gives the key back to the client. device:NAME+ restricts a
    binding to named libinput devices (device:!NAME+ excludes them; several
    prefixes accumulate a list).
  • keep_aspect_ratio. A matching floating window keeps its
    width-to-height ratio when resized by hand — the axis the hand moved more
    drives, and the other follows the ratio the window had before the step, so
    it locks in at the first pull and does not drift.
  • confine_pointer. A matching rule holds the pointer inside the window
    while it is focused — the cursor stays on a game's monitor without the
    client asking for a constraint of its own. A client's own pointer lock
    still takes precedence.
  • Virtual monitors on any backend. output.test_add plugs a headless
    monitor into a running session — a DRM or nested desktop gains a monitor
    it can place windows on and screencopy, the way Hyprland's output create headless does — and output.test_remove unplugs one. The virtual-output
    subsystem comes up lazily the first time one is asked for.

Changed

  • chromium is the default backend. nix build, nix run,
    .#viewport-smithay and programs.viewport.shellBackend all land on the
    browser this flake does not link. The engine is nixpkgs' chromium itself,
    so it tracks every security update nixpkgs ships; cef remains the
    cheapest per painted frame and a name to ask for. See docs/benchmarks.md.

Fixed

  • The cef shell crash-looping against the packaged engine. A
    dependabot bump moved the crate to the 156 line while nixpkgs' cef-binary
    is 151: libcef refused the API version and every call after died. The
    crate is pinned to 151.8 again, and dependabot now ignores its major
    bumps — a major is an engine upgrade, and lands with cef-binary by hand.
  • A shell commit restoring the window that had just been minimized. The
    idle floor every shell commit runs picked the newest mapped window with no
    minimized filter, and activation restores — so the first commit after a
    minimize brought the window back. Both implicit paths now skip minimized
    and hidden windows; explicit activation still restores.