URI:
       Added blur function - slock - [fork] simple X display locker utility
  HTML git clone https://git.drkhsh.at/slock.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 06bca97187d6ea4461055cc1d3b59544d7884b0e
   DIR parent 2c8c758ac00437c8616946b1aa6a2159f40b47ae
  HTML Author: Lars Niesen <iah71niesen@gso-koeln.de>
       Date:   Wed, 29 Apr 2020 14:15:59 +0200
       
       Added blur function
       
       Diffstat:
         M config.def.h                        |       4 ++++
         M slock.c                             |       3 ++-
       
       2 files changed, 6 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/config.def.h b/config.def.h
       @@ -10,3 +10,6 @@ static const char *colorname[NUMCOLS] = {
        
        /* treat a cleared input like a wrong password (color) */
        static const int failonclear = 1;
       +
       +/*Set Blur radius*/
       +static const int blurRadius=5;
       +\ No newline at end of file
   DIR diff --git a/slock.c b/slock.c
       @@ -376,7 +376,7 @@ main(int argc, char **argv) {
                        die("slock: setgid: %s\n", strerror(errno));
                if (setuid(duid) < 0)
                        die("slock: setuid: %s\n", strerror(errno));
       -                
       +
                /*Create screenshot Image*/
                Screen *scr = ScreenOfDisplay(dpy, DefaultScreen(dpy));
                image = imlib_create_image(scr->width,scr->height);
       @@ -385,6 +385,7 @@ main(int argc, char **argv) {
                imlib_context_set_visual(DefaultVisual(dpy,0));
                imlib_context_set_drawable(RootWindow(dpy,XScreenNumberOfScreen(scr)));        
                imlib_copy_drawable_to_image(0,0,0,scr->width,scr->height,0,0,1);
       +        imlib_image_blur(blurRadius);
                
                /* check for Xrandr support */
                rr.active = XRRQueryExtension(dpy, &rr.evbase, &rr.errbase);