URI:
       Added blur function - slock - My fancy fork of slock
  HTML git clone git://git.drkhsh.at/slock.git
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 75528e6b67a3f97210b50b1069e5e7c441629e60
   DIR parent 1e2c3bd3e196fe5004d885c04054c9492e6f0536
  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
       @@ -372,7 +372,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);
       @@ -381,6 +381,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);