summaryrefslogtreecommitdiff
path: root/dwm/dwm.c
diff options
context:
space:
mode:
authorauric <104602845+ihateamongus@users.noreply.github.com>2025-09-07 17:59:01 -0500
committerGitHub <noreply@github.com>2025-09-07 17:59:01 -0500
commit0760308a3bdcbb836dc72a95ef269f6e33fb3fd3 (patch)
tree97dcb306150f71b52d49989370d9dc45a00baf46 /dwm/dwm.c
parent055af7faa25e70b7f19bfdad8514ff684de6672d (diff)
parentd987fce94ca9e59a970d95872d6c1dc2ee86fd84 (diff)
Merge pull request #6 from ihateamongus/codex/analyze-oldresources-folder-for-performance-en38ks
Add glass-style transparency and dynamic tags
Diffstat (limited to 'dwm/dwm.c')
-rw-r--r--dwm/dwm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dwm/dwm.c b/dwm/dwm.c
index 21f352e..a48eb7d 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -280,6 +280,9 @@ static Window root, wmcheckwin;
/* configuration, allows nested code to access above variables */
#include "config.h"
+#ifndef BAROPACITY
+#define BAROPACITY 1.0
+#endif
static unsigned int scratchtag = 1 << LENGTH(tags);
@@ -1959,7 +1962,7 @@ updatebars(void)
CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa);
XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor);
XMapRaised(dpy, m->barwin);
- setopacity(m->barwin, baropacity);
+ setopacity(m->barwin, BAROPACITY);
XSetClassHint(dpy, m->barwin, &ch);
}
}