Repository navigation
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.