slock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 8f6f789708e1aaa6a4ffca307069f49aa7c85da8
parent 9036c899a99e0ae11c7dc4048c77c32283a70905
Author: herrwusel <herrwusel@users.noreply.github.com>
Date:   Mon, 30 May 2022 10:44:03 +0000

Consistent unlock styles with pam and blur patches
Diffstat:
Mslock.c | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/slock.c b/slock.c @@ -318,9 +318,20 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, retval = pam_start(pam_service, hash, &pamc, &pamh); color = PAM; for (screen = 0; screen < nscreens; screen++) { + #if DWM_LOGO_PATCH + drawlogo(dpy, locks[screen], color); + #elif BLUR_PIXELATED_SCREEN_PATCH || BACKGROUND_IMAGE_PATCH + if (locks[screen]->bgmap) + XSetWindowBackgroundPixmap(dpy, locks[screen]->win, locks[screen]->bgmap); + else + XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[0]); + XClearWindow(dpy, locks[screen]->win); + #else XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[color]); XClearWindow(dpy, locks[screen]->win); XRaiseWindow(dpy, locks[screen]->win); + #endif // BLUR_PIXELATED_SCREEN_PATCH + } XSync(dpy, False);