test(protocols): stabilize wlr screencopy fixture - #1369
Merged
Merged
Conversation
zorowk
marked this pull request as draft
September 2, 2026 08:25
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: zorowk The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Reviewer's GuideThis PR stabilizes the wlroots screencopy protocol test by replacing the implicit 1280×720 headless output with a deterministic single 1920×1080 fixture, deriving client buffers and capture regions from layer configuration, and adding explicit XWayland test setup plus detailed rendering diagnostics. Sequence diagram for configuration-driven screencopy capturesequenceDiagram
participant Fixture as Test fixture
participant Compositor
participant Client as Screencopy client
participant Output as 1920x1080 output
Fixture->>Compositor: Create one 1920x1080 headless output
Compositor-->>Output: wl_output geometry and mode
Client->>Compositor: Create layer surface
Compositor-->>Client: configure(width, height)
Client->>Client: Allocate buffer from configure dimensions
Client->>Compositor: Commit layer surface buffer
Client->>Compositor: zwlr_screencopy_manager_v1_capture_output
Compositor-->>Client: Frame dimensions match configured output
Client->>Compositor: zwlr_screencopy_frame_v1_copy
Compositor-->>Client: Captured frame
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
zorowk
force-pushed
the
fix_screencopy
branch
2 times, most recently
from
September 7, 2026 07:18
b2b87a8 to
7da90ff
Compare
|
TAG Bot New tag: 0.10.0 |
Protocol tests need a build-tree Xwayland wrapper, deterministic screencopy dimensions and capture failure diagnostics. - Use the build-tree treeland-xwayland wrapper and preserve non-empty WLR_XWAYLAND overrides. - Create a 1920x1080 headless fixture and derive client buffer and capture region dimensions from configure events. - Log render state on capture failure while continuing to render every output and accumulating the sampled output commit result. Keep protocol fixtures independent of an installed wrapper and distinguish missing output commits from screencopy failures. Combine exactly 6cbba9f and 61ef52e8a, preserving their final tree.
zorowk
force-pushed
the
fix_screencopy
branch
from
September 14, 2026 06:17
7da90ff to
21f1a6b
Compare
zorowk
marked this pull request as ready for review
September 14, 2026 06:46
Groveer
approved these changes
Sep 14, 2026
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.
The screencopy protocol test relied on wlroots implicit 1280x720 output while its fixture documentation and client expected 1920x1080.
A deterministic single output keeps the captured frame dimensions aligned with the rendered source buffer.
Summary by Sourcery
Make the wlr screencopy protocol test deterministic by controlling its headless output fixture and deriving capture dimensions from protocol events.
Bug Fixes:
Enhancements:
Documentation:
Tests:
Chores: