dwm-fixborders-6.2.diff 811 B

12345678910111213141516171819202122232425262728
  1. From 1529909466206016f2101457bbf37c67195714c8 Mon Sep 17 00:00:00 2001
  2. From: Jakub Leszczak <szatan@gecc.xyz>
  3. Date: Fri, 22 Nov 2019 10:46:53 +0800
  4. Subject: [PATCH] Fix transparent borders
  5. When terminal has transparency then its borders also become transparent.
  6. Fix it by removing transparency from any pixels drawn.
  7. ---
  8. drw.c | 2 ++
  9. 1 file changed, 2 insertions(+)
  10. diff --git a/drw.c b/drw.c
  11. index 8fd1ca4..490a592 100644
  12. --- a/drw.c
  13. +++ b/drw.c
  14. @@ -202,6 +202,8 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname)
  15. DefaultColormap(drw->dpy, drw->screen),
  16. clrname, dest))
  17. die("error, cannot allocate color '%s'", clrname);
  18. +
  19. + dest->pixel |= 0xff << 24;
  20. }
  21. /* Wrapper to create color schemes. The caller has to call free(3) on the
  22. --
  23. 2.26.2