Repository navigation
fix: stop hiding errors from the update and capture threads - #38
Merged
Merged
Conversation
Replace the string-carrying Protocol, Failed, Portal and Shell variants
with Bind, Wayland, Timeout and Frame { output, reason }, plus
PortalError and ShellError that keep their zbus and image sources. A
timeout is now its own variant, so KWin's slow answers no longer look
like a refusal. Drop the never-built Pixels variant: pixel errors are
now a FrameError reason.
A screen whose buffer cannot be allocated now fails on its own and
is reported with its output name.
Move size, format and buffer into Pending::allocate, used by both ext-image-copy-capture and wlr-screencopy. The stride is the one the compositor asked for, else rows packed tightly, which makes the no-stride case unreachable. wlr-screencopy now destroys its frames and manager even when waiting fails, as ext-image-copy-capture already did.
to_rgba and View::get now both turn a pixel into RGBA through ShmFormat::rgba.
Transform::apply takes the image by value, so an upright screen is moved instead of cloned (about 33 MB at 4K), and flips and half turns happen in place.
capture() now returns a Capture with layer_shell, read from the globals it already listed, so the overlay no longer opens a second Wayland connection just to ask for zwlr_layer_shell_v1.
Looking up and installing a release now fails with an UpdateError instead of a string. The editor's card tells a GitHub it cannot reach, which it offers to try again, apart from a download that failed its signature or checksum check, which it does not. The tray logs only the latter as a warning, and self-update no longer wraps the error by hand.
A panic in the update's blocking work was told as "cancelled". It is now logged and told as a bug, apart from the runtime shutting down. The capture logs a tray icon that cannot be shown, and a screenshots folder that cannot be created before the Save As dialog, instead of dropping both.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A panic in the update's blocking work was told as "cancelled". It is now
logged and told as a bug, apart from the runtime shutting down. The
capture logs a tray icon that cannot be shown, and a screenshots folder
that cannot be created before the Save As dialog, instead of dropping
both.