Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Optionally submit 10 bit buffers #54

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Apr 29, 2024

  1. Set default background color to #3f3f3fff

    This ensures that the background is always opaque.
    
    This is a significant change; before, if no background color was
    specified, images were drawn onto an initially transparent buffer,
    leaving some of the content behind swaybg visible if the image was
    alpha transparent or if the 'fit' or 'center' scaling modes were used
    and the image aspect ratio did not match, or the image was not large
    enough. As the purpose of a wallpaper/background program is to draw
    the pixels behind all other interface items, this transparency is
    neither a required nor a very useful behavior.
    
    The new color is close to the result of blending the old default
    background color (#00000000 = transparent) with the color Sway uses
    to clear the background ([0.25,0.25,0.25,1.0] = mid gray). Users of
    other compositors may need to adjust their images or specify the
    --color flag on the command line.
    mstoeckl committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    021b278 View commit details
    Browse the repository at this point in the history
  2. Only submit opaque (XRGB8888) buffers

    This lets the compositor avoid needing to clear and blend the
    pixels behind the background surface made by swaybg.
    mstoeckl committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    fda4ace View commit details
    Browse the repository at this point in the history

Commits on May 3, 2024

  1. Remove unused function

    mstoeckl committed May 3, 2024
    Configuration menu
    Copy the full SHA
    edcd734 View commit details
    Browse the repository at this point in the history
  2. Optionally submit 10 bit deep buffers

    This requires that the compositor support either XRGB2101010 or XBGR2101010,
    and that the background image is a 16-bit PNG.
    mstoeckl committed May 3, 2024
    Configuration menu
    Copy the full SHA
    2230501 View commit details
    Browse the repository at this point in the history