Repository navigation
Releases
viewport 0.10.0
The shell's extension surface grows up — widget extensions declare an
options schema the settings panel draws as real controls — and the NixOS
module names the browser the chromium backend drives and leaves the
bootstrap config to your own file. Underneath: a security and correctness
pass across the shell backends, auto-HDR that follows every fullscreen path,
a screenshot picker that finally freezes the screen, and a Smithay refresh.
The full list is in the
changelog;
the headlines are below.
Extensions and the NixOS module
- Widget extensions declare an
optionsschema, the same shape wallpaper
extensions use, and the settings panel draws it as real controls — a group
per custom widget on the bar, a repeated name drawn per instance. Changing
a control writes the whole bar list back and remounts the widget on the new
options. The schema is validated at registration. programs.viewport.chromiumBinarynames the browser thechromium
backend drives, by path — Google Chrome included, same Blink, same DevTools
protocol. The backend links no engine, so any Chromium-family browser
answers.programs.viewport.userConfigstarts the session without--config,
leaving the bootstrap config to~/.config/viewport/config.json— the mode
for a config a home-managerxdg.configFilewrites.
Security and correctness
- The frame guard and load gate are shared once, in
viewport-shell-bridge, wiring included — and cef inherits chromium's
navigation behaviour: its gate no longer stays open across a cross-document
navigation, a method result cannot reopen it (the reload's ownPage.reload
result could), and the first install waits for the load event before
draining. Events are no longer evaluated into a half-loaded document. - The injected bridge's origin check refuses UNC-style
file://host/path
URLs — the same rule the Rust classifier it mirrors always applied. Both
Servo backends share the fixed script. - Auto-HDR re-evaluates on every path that moves its inputs: a shell
view.fullscreen, a taskbar's foreign-toplevel request, a minimize or a
hide. An HDR game put fullscreen by the shell or the taskbar kept the screen
in SDR until something else happened to move. output.queryis a read any same-user script may ask. It was privileged
and side-effecting, so the screenshot binding's untrusted helper was refused
and the freeze-frame flow silently fell back to selecting on the live
desktop. The query now answers the asker alone, reconciling nothing — and
the screenshot freezes again.
Under the hood
- The Smithay fork rebases onto upstream
7ff0ede4(xdg-decoration v2, the
Xwayland pidfd, a tablet grab deadlock fix, a keymap null-terminator fix),
its four patches unchanged;viewport-vulkanfollows to the same commit,
and 27 other packages move to their highest compatible versions. - The startup every shell backend repeated — log subscriber, origin-checked
options, urandom token, private directory, extra-args env — lives in the
bridge once; the injected bridge script is one template with a hole per
transport; the input dispatch is split into per-event handlers; the chromium
command pipe writes through oneFilewith aVecDequequeue; servoshell's
events poll is assembled rather than re-serialized; the embedded servo
bridge reads its query in one pass.
viewport 0.9.0
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 takesfade,slide,slidefade
orzoom, a duration, and a curve or physical spring, inheriting from
motion.windowsthen 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_dimandmotion.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_workspacemoves the pointer to
the centre of the window focused on the new workspace —0(the default)
leaves it where it was,1warps,2forces the warp even when
cursor.no_warps, the master switch over compositor-initiated warps, is
set. A client's own pointer warp and a scriptedinput.pointerare 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 — acloseorfocuswith 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_addplugs 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'soutput create headlessdoes — andoutput.test_removeunplugs one. The virtual-output
subsystem comes up lazily the first time one is asked for.
Changed
chromiumis the default backend.nix build,nix run,
.#viewport-smithayandprograms.viewport.shellBackendall land on the
browser this flake does not link. The engine is nixpkgs'chromiumitself,
so it tracks every security update nixpkgs ships;cefremains the
cheapest per painted frame and a name to ask for. Seedocs/benchmarks.md.
Fixed
- The
cefshell 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 to151.8again, and dependabot now ignores its major
bumps — a major is an engine upgrade, and lands withcef-binaryby 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.
viewport 0.8.0
The OLED desk and the extension ecosystem: wallpaper extensions that draw
the desktop in ordinary DOM and CSS — per output, measured against
panel-drive budgets, tunable from the settings panel — a notification
extension hook, an idle dim ramp, a dim drifting focus border and a game
mode toggle. The lock work: lock before suspend, an idle lock that stays
blanked, an optional transparent lock screen, and a leaving-the-desk chord
that locks as well as blanks. Plus the multi-GPU copy that fills the last
cross-card hole, and the re-aim guard fix that stops a closing menu from
firing a shot. The full list is in the
changelog; the
headline is below.
Extensions
- Wallpaper extensions. A user script draws the desktop background, the
same shape as a layout extension or a custom bar widget:
wallpaper_extensionsnames local scripts,wallpaper_extensionselects
one,wallpaper_optionsis handed to it untouched. Because the extension
draws in ordinary DOM and CSS it works under every renderer, Vulkan
included.examples/wallpapers/gradient.jsis an animated demo;
docs/wallpaper-extension.mddocuments the contract. - Per output. The
outputsblock gainswallpaper_extension/
wallpaper_options, so each monitor runs its own scene; an empty extension
shows the ordinary picture there while its neighbours run a scene. - An OLED drive-budget guard.
wallpaper_oled_guardisoff,warn
(the default) orrefuse. The shell rasterises what CSS actually painted
and measures four metrics in linear drive — mean, the fraction over half
drive, the peak, the fraction over 25% grey. Refuse takes an offending
extension down and returns to the ordinary wallpaper. - A live panel-drive bar widget. Name
panelinbar_items: the
wallpaper's current mean drive as a percentage, sampled every five seconds,
with the peak and the wash in the tooltip. A desk that never asks for it
pays nothing. - Options in the settings panel. A wallpaper descriptor may declare an
optionsschema — number, text, toggle, choice — and the panel draws a
control per option, writing back through the runtime config path. - Notification extensions.
filter(notification)keeps a popup off
screen while the notification still reaches the centre and history;
render({notification, el})decorates the popup the shell built. Both are
contained, so a bad script cannot silence the desktop. A badges demo ships
inexamples/notifications.
OLED panel care
- An idle dim ramp.
idle.dim_after/idle.dim_floorramp brightness
down across the idle window instead of holding full drive until the blank —
through the compositor gamma, so ICC calibration and night-light tint
survive. Any deliberate input brightens it again at once. border.animated. The focused border becomes dim and low-saturation
and its hue wanders by three incommensurate sines, sharing the load across
subpixels instead of grinding one channel at ~93% drive for hours.- Game mode. One toggle — config key, runtime setter or bind action —
zeroes the motion pace, hides the bar and pauses the wallpaper drift,
restoring all three on the way out.
Lock
- Lock before suspend. The compositor holds logind's
sleepdelay
inhibitor and locks onPrepareForSleep, so any suspend — power menu, lid,
systemctl suspend— resumes on the lock screen. Immediate, never the
cancellable delay, and it follows the idle lock policy. - An idle lock stays blanked, and
lock_transparentdraws the built-in
lock screen as a translucent scrim over the wallpaper — safe because the
shell hides the desktop furniture while locked. - Mod4+Shift+b locks and blanks — the leaving-the-desk chord no longer
leaves the session unlocked behind dark panels. - libpam on NixOS (fixed): the lock screen dlopens
libpam.so.0, and the
wrapper now names it, so a locked NixOS session has a way back in from the
front.
Fixed
- Closing a menu over a captured pointer no longer fires a shot. The
re-aim guard asks the surface holding the pointer's focus, where the lock
lives, instead of the surface under the cursor — an overlay has no
constraint, and the old check let a leave/enter churn deliver an absolute
motion to the locked client as aim. - Multi-GPU: a buffer the scanout card cannot import is copied, not
dropped — imported on a helper card, drawn into a cached shadow on the
scanout card, a blit per buffer rather than per frame. The shell's
copy-buffer modifiers answer to every online card too, closing the
shell-shaped hole of the same gap. - The geometry pump keeps sampling through a stalled animation, and tiled
windows clip to the content box — no more mid-flight scroll frozen on
screen under VRR, no more sliver of a client in the edge gap.
viewport 0.7.0
The Hyprland input and rule parity work: three per-device input settings, a
focus-follows-the-pointer inset, per-window blur rules, and a tablet pen that
reaches every output. The full list is in the
changelog; the
headline is below.
Input
scroll_buttonpins the button scrolling waits for whilescroll_method
ison_button_down, named by its evdev code — the middle button is 274, not
2.scroll_button_lockmakes that button toggle scroll mode rather than
having to be held, anddrag_3fgdrags with three fingers down instead of a
tap followed by a drag. libinput makes the last one the same device setting
tap_dragprograms, so the two share one state. All three are set at runtime
throughconfig.inputand carried in theconfigevent'sinput.
Focus
cursor.follow_mouse_shrinkinsets the invisible rectangle a window
presents to focus-follows-the-pointer by the given logical pixels on each
side, so a pointer over a client's shadow or decoration margin no longer
moves the keyboard. Clicks, the wheel and drags hit the window wherever the
pointer really is; only the hover focus is shrunk. Zero — the default — keeps
the whole bounding box.
Rules
- Per-window
blurrules. The compositor draws framebuffer blur behind the
window's whole surface tree — the same effect a client gets from
ext-background-effect-v1— whether or not the window asked for it, popups
included, so a menu over a blurred window blurs too. The shell resolves the
rule per window and sends it over a newview.blurmessage; a rule that
stops matching turns the blur back off, because the shell re-sends current
policy on every rule match. A renderer that cannot run the effect draws the
window sharp, exactly as it would a layer-rule blur. X11 windows keep their
existing path.
Fixed
- A tablet pen that reaches every output. The pen's position maps across the
bounding box of the layout — the same region the pointer is clamped to —
instead of being folded onto the first output: with a second monitor plugged
in, half of every tablet's surface was unreachable. Pressure is unchanged and
needs nothing: libinput normalizes it to 0..1 and the compositor passes it
through as it is.
viewport 0.6.0
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 echoedview.focusedback —
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_enabledswitches the pipeline off,render:cm_sdr_eotfsays what
undeclared SDR is,render:cm_auto_hdrswitches an output into HDR for
fullscreen HDR content (withno_auto_hdr), and windows carrytonemaprules
inon/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
animationrules. - Groups:
drag_into_group,merge_groups_on_drag,
group_on_movetoworkspace,group.lockandauto_group, with the tab strip
as a shell-drawn groupbar. - Cursors: hyprcursor themes, behind
cursor.enable_hyprcursor, with the
HYPRCURSOR_THEME/HYPRCURSOR_SIZEprecedence and XCursor fallback. - Workspaces:
decorate,float_gapsandlayout_optsrules on top of
no_borderandno_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 aview.layoutplaced 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 0and 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.layoutwhose 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_v1global, 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
tonemaprules (Hyprland's rule of the same name):on(the
default) andlimitedfold 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;clampscales the source peak onto the
target's and clips what remains;offleaves 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),gamma22for undeclared buffers, orgamma22forcewhich 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(0off,1switch to HDR,
2the same with EDID primaries, absent is1): a fullscreen window whose
buffers declare an HDR transfer function — PQ or HLG, through
wp_color_management_v1or 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. Ano_auto_hdrwindow 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.lockrefuses all of them the way it refusesauto_group. - Per-workspace
animationandlayout_optsrules.animationnames the
style a swi...
viewport 0.4.0
A release about the edges of the desktop — an X client's synthetic input, a
wallpaper that moves, a wheel a script can turn — plus the bug tail those
changes shook loose, and cef back as the default shell.
- An X client's emulated input reaches the desktop. Xwayland ≥ 23.2 hands
a client's XTEST calls to libei, and the compositor starts it that way: Steam
Input's desktop layout moves the real cursor,xdotoolworks outside X11,
and a controller that used to need a uinput bridge has a second path with a
consent prompt in front of it. - Animated wallpapers. A GIF, animated WebP or APNG is a
background-imagethe engine animates, in all five fittings including
tile; a video plays in a muted, looping<video>under the desktop with
fill/fit/stretch/centerasobject-fit, and stops and unloads when a
terminal hides the page. input.scrollturns the wheel over the control socket, in notches on
either axis, completing the synthetic-input familyinput.pointer,
input.buttonandinput.keybegan — one detent per notch, the same
conversion remote-desktop discrete scroll passes through.cefis the default backend again —nix build,nix run,
.#viewport-smithayandprograms.viewport.shellBackendall land on the
embedded Chromium, the cheapest of the three engine-free backends per painted
frame.- The smithay fork is rebased onto upstream master (
cf43a02a), its
virtual-keyboard patches dropped for upstream's ownzwp_virtual_keyboard_v1
rework, and its delta is now three patches. - Fixed, in the long tail: screen sharing works again on a machine that has
run tests (the desktop-wide bus names belong to the session's compositor);
Wine's_NET_WM_STATEfullscreen opens fullscreen; a barexdg-dialog-v1
hint no longer floats every GTK window; HDR works in games under Proton
(wp_color_management_v1at version 3); scrolling works in Chromium-family
clients including Steam; copying in a Wayland client is visible to X11
applications; a new window no longer opens in the top-left corner; a
fixed-size X11 window floats rather than being tiled; a screen share no
longer redraws every monitor; andviewport msg -t input.button --button 272
sends a number.
See CHANGELOG.md for the whole of it, and packaging/aur for the Arch
recipes — nine of them, three engines in three forms each.
Arch packages
viewport-webkitgtk, viewport-wpe and viewport-chromium build this tag
from source; their -bin twins unpack the artifacts below; the -git recipes
follow main. One machine takes one engine in one form.
viewport 0.3.0
A release about the shell's own chrome and the long tail of the compositor — plus a dependency pass that carries the whole graph to current.
- The shell's own chrome can blur what is behind it. A
shell.overlayrect may carryblur: true, and the compositor draws the same framebuffer-effect element a client'sext-background-effect-v1request would. The floating (auto) bar uses it, and"bar_blur": falseleaves it flat without giving upbar: auto. On DRM,ext-background-effect-v1is advertised again through the Vulkan renderer, which grew a render-pass-safe capture and a nine-tap blur pipeline. - A top-level
envblock sets environment variables for the session and every program it starts, applied before any backend opens and handed explicitly to each child. - Workspaces and specials got the rest of Hyprland's vocabulary:
persistent,default_nameandon_created_emptyon workspace rules, and namedspecial:NAMEspaces a rule can target andspecial.toggle/special.movecan drive. - Bindings and rules widened:
bindddescriptions, eight more pseudo-modifier flags (release+,non_consuming+,ignore_mods+,repeating+,long_press+,universal+,click+/drag+), and window rules that matchclass,initial_class,initial_title,xwayland,modalandwp_content_type_v1, withfocus: false,animation: falseand size effects. - The desktop's own details: per-device
scroll_factorandemulate_discrete_scroll,cursor.hide_on_key_pressandhide_on_touch,keyboard.rulesandkeyboard.model, agroupblock for auto-grouping and locking, amotionblock for the shell's animation, and an ICCvcgtcalibration read fromoutputs.<name>.icc. - The remote-desktop clipboard works, bridging text between a remote session and the compositor's clipboard history.
- The portal screenshot path is fixed, including rotated and flipped outputs, and image-copy frames whose window or output has gone are failed rather than pinned for the session.
- Notifications draw again on a monitor that is not fullscreen, the media widget survives a player leaving and returning, and the floating bar's blur no longer smears the bar itself.
- A performance pass: leaf indexing, coalesced input, a bounded sound queue, a cached NetworkManager connection list, and an IPC framer that no longer rescans its accumulator.
See CHANGELOG.md for the whole of it, and packaging/aur for the Arch recipes.
viewport 0.2.0
A release where the desktop got the parts it was missing, and the parts it had stopped leaking.
- A lock screen the shell draws, with PAM behind it, that fails closed. Locking used to mean one binding and a TTY. The shell's own page does it now, and the part that had to be got right is that a lock screen which cannot reach the compositor stays locked rather than opening.
- What a desktop is asked for and this one did not have: a launcher of its own —
Mod4+dused to beexec wmenu-run— a power menu, a notification centre, a clipboard history kept by the compositor, a media widget, a system tray whose menus the shell draws, a settings panel, an on-screen keyboard in HTML and CSS rather than a second toolkit, Wi-Fi and Bluetooth pickers, a battery widget with lid policy and a power-profile picker, a calendar under a clock that is not one American's, a screen magnifier, and dark mode announced in both settings namespaces. - The portals that make it a session.
RemoteDesktop,GlobalShortcuts,Screenshot, input capture for handing the local keyboard and pointer to a client, an EI server soRemoteDesktopanswers at all, and the two freedesktop interfaces that keep a screen awake. ScreenCast now refuses a request when there is no trusted consent UI to ask about it. - Multi-GPU stopped being an accident.
gpuchooses which card renders and which one clients are told about,cross_gpusays what clients may allocate when there is more than one, a buffer is judged by every card on the seat rather than by one,wp-drm-lease-v1leases a connector from the card that has it, and two cards no longer give two screens the same name. wp-color-representation-v1lets a client say what its Y'CbCr buffers mean — the matrix, the quantisation range, the chroma siting a DMA-BUF cannot carry — and the renderer applies that at import in place of a guess from the buffer's height.ext-background-effect-v1gained bounded, region-aware blur for ordinary Wayland surfaces.- Rules and layout got the vocabulary they were missing. Ordered
layer_rulesmatching a namespace by substring, exactly or by pattern;contains,equalsand regular-expression window rules; per-device libinput settings; numbered workspaces that override output and tiling mode; minimise and maximise that work from native clients, XWayland, shell IPC and the taskbar alike; mirroring a same-GPU head; live touchpad gestures a layout can claim without swallowing sequences nobody matched. - VRAM stopped climbing for as long as a share was open, a share that was resized goes back to being drawn into directly rather than copied, and the out-of-process shells have a four-megabyte byte-counted outbound IPC instead of an unbounded queue.
- The corners. A rounded window scanned out square,
border.smartsquared off a lone window, and a floating window's border punched a few pixels of wallpaper through its own corners. A notification closing also left the background drawn where it had been.
See CHANGELOG.md for the whole of it, and packaging/aur for the Arch recipes.
viewport 0.1.8
A release of fixes to things that went wrong where nobody was watching — a lock screen, a blanked panel, a cursor, a binding that failed silently — and a pass over the per-frame hot path.
- A second locker can no longer take a screen from a lock screen that is drawing. Nothing refused the second
ext-session-lock, and taking it dropped the first locker's surfaces: two clients owned one screen, only the newer was rendered, and unlocking the one you could see left the session locked after a correct password. It needed nothing unusual — locking by hand and then letting the idle timer expire was two lockers. A lock screen that is drawing may not be taken over; one that is not still may, because running another locker is the only way out of one that crashed. Mod4+Shift+bkeeps the screens off. Onlyrender_if_neededchecked the blank, and four paths queue a frame around it — a vblank still in the air, the watchdog, a connector rescan, a session resume — and a queued frame wakes a panel. The check now sits where the frame is built and committed, and again at the last gate before KMS.- The cursor is drawn at the size that was asked for. The nearest theme image was drawn at its own resolution, so asking for 40 from a theme with 32 and 48 gave 32; it is now sized explicitly with the hotspot rescaled to match. A reload also announces the new size to the settings portal instead of leaving every toolkit on the startup value, and the
XCURSORvariables reach the session environment so a systemd- or D-Bus-started client stops picking its own default. - The shell is restarted with a backoff, and is never given up on. It used to be respawned every tick, five times a minute, then left down for the session — which on a GPU that had run out of memory meant five 5120x1440 buffer requests in ninety seconds and then a blank desktop until the session was restarted. Now 1s, 2s, 4s, 8s, then every thirty seconds for as long as it takes, so the desktop comes back on its own once the cause has gone.
- A binding says what it printed and how it ended. Its stderr went to
/dev/nulland its status was thrown away, so a script that died on a bad argument looked exactly like one that worked. The first twenty lines of stderr are logged against the command, and a non-zero exit with its status. - The keymap on an empty desktop scrolls when it does not fit. The max-height and
overflow-yhad been there since it was written and neither did anything: the wheel went through the inert empty state to the page, and a bounded multicol box overflows sideways rather than down. It is a wrapping flex row now, and takes the pointer itself while the empty state stays click-through. - Cheaper frames and fewer restacks. Each
view.layoutused to restack the whole space and re-ask every surface's output colour — desktop questions asked once per window per frame — which are now settled once per batch. Alongside: a surface-to-view index so a lookup no longer costs aWlSurfaceclone per window walked, a bridge writer that sends a frame's worth of messages in one write instead of ~480 small syscalls a second, and a render path that stops minting element ids, format strings and map keys nothing reads. No behaviour changes from any of it. - A zoomed-out window gets a border at the size it is drawn, rather than one thin line hanging below it.
See CHANGELOG.md for details. Binary packages are published separately.
viewport 0.1.7
Notifications can make a sound again. The compositor claims org.freedesktop.Notifications itself, which took playback away along with the window when it replaced mako and dunst — a notification has been silent here since.
notifications.sound_fileandnotifications.sound_namein the config file say what a notification sounds like by default.- All three of the specification's sound hints are honoured: a sender's own
sound-fileorsound-nameoverrides the default for its notification, andsuppress-soundsilences it, because that hint means the sender is playing its own. sound_nameis resolved by the sound-theme search written out: data directories,stereo/before the flat layout,.oga/.ogg/.wav, andInheritsfollowed withfreedesktopas every theme's implicit parent.
Playback is PipeWire, which this program already links for the screencast portal, with symphonia decoding — no libcanberra, and so no new library in the closure or in nine AUR packages. Each sound decodes and plays on a thread of its own, and decoded files are kept because the same short sound plays all session. A session with no sound server plays nothing, says so once, and drops sound from its reported capabilities so a sender knows to play its own.
See CHANGELOG.md for details. Binary packages are published separately.