aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArav K <nothien@uber.space>2020-12-16 21:09:06 +0100
committerSimon Ser <contact@emersion.fr>2020-12-16 21:19:20 +0100
commitc9fe0626ca7351fc31e20545f91631cb40b0ea17 (patch)
treec8638aaf51c402fe2e3d1f5246fd9447027ae869
parentba943c694cec527580c4d9f2098157dad6af55b1 (diff)
Fix swaybar tray for non-systemd
Meson's generated config.h header defines false macros as 0, not undefined. This means that the header line, which was checking for the definition existing, not a non-zero value, was incorrect. Now the swaybar tray can be used with systemd, elogind, or basu.
-rw-r--r--include/swaybar/tray/tray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/swaybar/tray/tray.h b/include/swaybar/tray/tray.h
index a64cd9c8..d2e80a6d 100644
--- a/include/swaybar/tray/tray.h
+++ b/include/swaybar/tray/tray.h
@@ -2,7 +2,7 @@
#define _SWAYBAR_TRAY_TRAY_H
#include "config.h"
-#ifdef HAVE_LIBSYSTEMD
+#if HAVE_LIBSYSTEMD
#include <systemd/sd-bus.h>
#elif HAVE_LIBELOGIND
#include <elogind/sd-bus.h>