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

Add foreground blurring (Privacy and Focus modes) #765

Open
wants to merge 12 commits into
base: next
Choose a base branch
from

Commits on Apr 16, 2023

  1. Add foreground blurring

    Rajan Saini authored and dshoreman committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    bfc58b0 View commit details
    Browse the repository at this point in the history
  2. Add an inactive-blur option

    Rajan Saini authored and dshoreman committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    7562cb0 View commit details
    Browse the repository at this point in the history
  3. Check for inactive_blur when drawing fg blur

    Rajan Saini authored and dshoreman committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    d9929fd View commit details
    Browse the repository at this point in the history
  4. Add --inactive-blur-include option

    Adds an option to specify which windows will be blurred when inactive.
    dshoreman committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    0279bf1 View commit details
    Browse the repository at this point in the history
  5. Enable blurring all windows without a list

    If --inactive-blur-include isn't specified, but --inactive-blur *is*,
    then the sensible default would be to blur all inactive windows.
    
    This commit does exactly that.
    dshoreman committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    ed53d28 View commit details
    Browse the repository at this point in the history
  6. Use blur_foreground to simplify conditionals

    The property was already added in the first commit on this branch, but
    it wasn't defined so it would've had no effect. With this, the long
    conditional is easier to read and *should* update automatically.
    dshoreman committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    4591de0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    dced2d4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5426688 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5ebb762 View commit details
    Browse the repository at this point in the history
  10. Add damage when blur_foreground changes

    Moves the setting of `blur_foreground` to a new method which then calls
    a second to actually set the value and apply damage if it's different,
    similar to how the blur_background value/damage is handled.
    dshoreman committed Apr 16, 2023
    Configuration menu
    Copy the full SHA
    4bccb48 View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. Fix segfault, don't hijack background blur

    Rather than overriding the background blur method, this will only use
    blur_method when it's already defined, otherwise creating a whole new
    blur context using the 'box' blur method with default size of 3. This
    fixes an issue where background blur would be forced even if unwanted.
    
    By placing the fgcontext code in picom.c rather than config_libconfig.c,
    this also fixes a segfault when passing `--inactive-blur` on the command
    line without having a blur method set either in an option or in config.
    dshoreman committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    c586170 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    45dc995 View commit details
    Browse the repository at this point in the history