diff options
author | Arav K <nothien@uber.space> | 2020-12-16 21:09:06 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-16 21:19:20 +0100 |
commit | c9fe0626ca7351fc31e20545f91631cb40b0ea17 (patch) | |
tree | c8638aaf51c402fe2e3d1f5246fd9447027ae869 /include/swaybar/tray | |
parent | ci: fix archlinux builds (diff) | |
download | sway-c9fe0626ca7351fc31e20545f91631cb40b0ea17.tar.gz sway-c9fe0626ca7351fc31e20545f91631cb40b0ea17.tar.zst sway-c9fe0626ca7351fc31e20545f91631cb40b0ea17.zip |
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.
Diffstat (limited to 'include/swaybar/tray')
-rw-r--r-- | include/swaybar/tray/tray.h | 2 |
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 @@ | |||
2 | #define _SWAYBAR_TRAY_TRAY_H | 2 | #define _SWAYBAR_TRAY_TRAY_H |
3 | 3 | ||
4 | #include "config.h" | 4 | #include "config.h" |
5 | #ifdef HAVE_LIBSYSTEMD | 5 | #if HAVE_LIBSYSTEMD |
6 | #include <systemd/sd-bus.h> | 6 | #include <systemd/sd-bus.h> |
7 | #elif HAVE_LIBELOGIND | 7 | #elif HAVE_LIBELOGIND |
8 | #include <elogind/sd-bus.h> | 8 | #include <elogind/sd-bus.h> |