aboutsummaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/event.c b/event.c
index cbd54fd..0fccb42 100644
--- a/event.c
+++ b/event.c
@@ -283,6 +283,7 @@ void newwindow(XCreateWindowEvent* e) {
if (c->parent == None)
c->parent = c->screen->root;
}
+#if defined(OPACITY) && defined(TRANSPARENTLIST)
if (istransparent(c)) {
/* We need to set the atom on both the window and its parent */
const Atom alpha_atom = XInternAtom(dpy, "_NET_WM_WINDOW_OPACITY", 0);
@@ -306,6 +307,7 @@ void newwindow(XCreateWindowEvent* e) {
(unsigned char*)&opacity,
1);
}
+#endif
if (kbLaunch) {
usleep(100000);