Skip to content

Commit 1529909

Browse files
author
szatanjl
committed
Fix transparent borders
When terminal has transparency then its borders also become transparent. Fix it by removing transparency from any pixels drawn.
1 parent d078c12 commit 1529909

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ drw_clr_create(Drw *drw, Clr *dest, const char *clrname)
202202
DefaultColormap(drw->dpy, drw->screen),
203203
clrname, dest))
204204
die("error, cannot allocate color '%s'", clrname);
205+
206+
dest->pixel |= 0xff << 24;
205207
}
206208

207209
/* Wrapper to create color schemes. The caller has to call free(3) on the

0 commit comments

Comments
 (0)