diff options
author | op <op> | 2023-03-22 08:27:36 +0000 |
---|---|---|
committer | op <op> | 2023-03-22 08:27:36 +0000 |
commit | 9eb763ab8781610b67df44b9914a018d32dfe1fe (patch) | |
tree | 14542df9fb6d444a983162b234bc374c2ba59d44 | |
parent | 4a6128d5e461515b87da0dabf31dd1c7288b26db (diff) | |
download | cwm-9eb763ab8781610b67df44b9914a018d32dfe1fe.tar.gz cwm-9eb763ab8781610b67df44b9914a018d32dfe1fe.tar.xz cwm-9eb763ab8781610b67df44b9914a018d32dfe1fe.zip |
cwm: fix a semi-transparency border issue with some applications
When running with a compositor the border of some applications (firefox, chromium, zathura...) is not rendered correctly. Initializing the highest significant bits of the color fixes it. diff from Julien Blanchard (julien at typed-hole [dot] org); ok okan@
-rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c index 9ec2935..e09a71d 100644 --- a/client.c +++ b/client.c @@ -596,7 +596,7 @@ client_draw_border(struct client_ctx *cc) pixel = sc->xftcolor[CWM_COLOR_BORDER_URGENCY].pixel; XSetWindowBorderWidth(X_Dpy, cc->win, (unsigned int)cc->bwidth); - XSetWindowBorder(X_Dpy, cc->win, pixel); + XSetWindowBorder(X_Dpy, cc->win, pixel | (0xffu << 24)); } static void |