summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAbhinav <abhinav.prsai@gmail.com>2025-07-17 18:06:02 +0100
committerAbhinav <abhinav.prsai@gmail.com>2025-07-17 18:06:02 +0100
commit1539d2e94a2f37a54af7de680a502940d76ea629 (patch)
treeca153bc3d7dcecc4e71bb9e1abb5932bc733a5f5 /src
parentc0b958ecca55d92fd3f48647c1f6df253f2a937a (diff)
fix transparent borders with picom
Diffstat (limited to 'src')
-rw-r--r--src/sxwm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 36ff863..e32efff 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -1716,9 +1716,8 @@ long parse_col(const char *hex)
return WhitePixel(dpy, DefaultScreen(dpy));
}
- /* return col.pixel |= 0xff << 24; */
- /* This is a fix for picom making the borders transparent. DANGEROUS */
- return col.pixel;
+ /* possibly unsafe BUT i dont think it can cause any problems */
+ return col.pixel |= 0xff << 24;
}
void quit(void)