Repository navigation
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 switch to that workspace runs (themotion.workspacesstyles), and
wins over the leaf's own style for that workspace only.layout_optsis the
layout's own string map for the workspace, handed to it ascontext.opts—
the hook alayout_extensionsscript is configured through — and both are
written back byconfig.save. - The motion tree:
motion.windows,motion.windows_in,motion.windows_move
andmotion.workspaces, each with its ownstyle,duration,ease,
four-numberbezieror physicalspring(mass/stiffness/damping, integrated
closed-form), inheriting pace, curve, spring and the on/off switch from
windowsand 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.layersandborderleaves are there too: the
shell's own furniture (bar, notifications, panel and screen-share openings)
and a window's frame changing colour.windowsOutremains 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
decorateandfloat_gapsrules (Hyprland's workspace rules of
the same names).decorate: falsedraws a workspace's windows bare — no
border, shadow or groupbar — while rounding stays its own rule, and
float_gapsinsets the work area floating windows are centred in and clamped
to, in thecss_gapsspelling (one to four numbers). Both travel to the shell
with the rest of the workspace policy and are saved byconfig.save. hyprcursorthemes are read: a manifest plus one zip per shape, per-size
images, per-cursor resize methods (nearest,bilinear,none), animation
delays,define_overridealiases andnominal_size, from
~/.local/share/icons,~/.iconsand$XDG_DATA_DIRS/icons. Enabled by
cursor.enable_hyprcursor(absent is on, Hyprland's default), named by
HYPRCURSOR_THEME/HYPRCURSOR_SIZEor 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_defaultlatches Num Lock on when the session starts
(Hyprland'sinput:numlock_by_default). A startup setting applied once after
the configured keymap is on the seat; a reload or a laterconfig.keyboard
never forces it back on over a manual toggle.- Per-workspace
no_borderandno_roundingrules (Hyprland's workspace rules
of the same names).no_borderdrops the coloured frame but keeps the focus
ring;no_roundingsquares the frame and reportssquareso the compositor
stops cropping the client to a rounded corner. Both are carried through
config.workspacesand persisted byconfig.save.