From 2c64aaa9d9f639e3c313981c66d1a6f3bf63ac2c Mon Sep 17 00:00:00 2001 From: op Date: Wed, 22 Mar 2023 08:27:36 +0000 Subject: [PATCH] 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@ --- app/cwm/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/cwm/client.c b/app/cwm/client.c index e15005883..955b36a44 100644 --- a/app/cwm/client.c +++ b/app/cwm/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.266 2022/02/26 15:19:18 okan Exp $ + * $OpenBSD: client.c,v 1.267 2023/03/22 08:27:36 op Exp $ */ #include @@ -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