Skip to content
Snippets Groups Projects

Clarify behavior of buffer transformations

Merged Julian Orth requested to merge mahkoh/wayland:jorth/transform into main

The new text describes how

  • Weston
  • Mutter
  • Plasma
  • Sway 1.8
  • Jay

behave.

Sway 1.9 flipped the behavior of 90 degree and 270 degree set_buffer_transform requests. mpv also changed the behavior of its vo_wayland_dmabuf backend which makes it only work correctly on sway 1.9.

It seems that the previous text was open to interpretation or at least caused some amount of confusion.


Consider the following example:

image

  • The user has rotated his display 90 degrees clockwise.
  • The compositor will rotate surface space 90 degrees counter-clockwise during compositing. It reports wl_output::transform = 90.
  • The client has rotated its buffer 90 degrees counter-clockwise relative to its surface. It sets wl_surface::set_buffer_transform = 90.
  • During compositing, the compositor does not have to apply any rotation to the buffer.
Edited by Julian Orth

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Julian Orth added 1 commit

    added 1 commit

    • b5ec695d - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Julian Orth added 1 commit

    added 1 commit

    • 9bddac76 - Clarify behavior of buffer transformations

    Compare with previous version

  • Pekka Paalanen
  • Pekka Paalanen
  • Julian Orth added 1 commit

    added 1 commit

    • 1d5794ef - Clarify behavior of buffer transformations

    Compare with previous version

  • Author Contributor

    The mpv change has been reverted based on this discussion.

  • Pekka Paalanen
  • Pekka Paalanen
  • The proposed wording looks fine to me. I just had two follow-up questions.

  • added Protocol label

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading