Skip to content
  • George Kiagiadakis's avatar
    waylandsink: stack the video subsurface into another subsurface that covers... · 5b1c5dbf
    George Kiagiadakis authored
    waylandsink: stack the video subsurface into another subsurface that covers the whole render rectangle
    
    The main reason behind this is that when the video caps change and the video
    subsurface needs to resize and change position, the wl_subsurface.set_position
    call needs a commit in its parent in order to take effect. Previously,
    the parent was the application's surface, over which there is no control.
    Now, the parent is inside the sink, so we can commit it and change size smoothly.
    
    As a side effect, this also allows the sink to draw its black borders on
    its own, without the need for the application to do that. And another side
    effect is that this can now allow resizing the sink when it is in top-level
    mode and have it respect the aspect ratio.
    5b1c5dbf