Compile without tray support

Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>
This commit is contained in:
Felix Weilbach 2021-04-30 21:58:01 +02:00
parent 89b97c5346
commit 3d158264e2
13 changed files with 35 additions and 25 deletions

View file

@ -45,6 +45,9 @@ struct swaybar {
struct wl_list unused_outputs; // swaybar_output::link
struct wl_list seats; // swaybar_seat::link
list_t *basedirs; // char *
list_t *themes; // struct swaybar_theme *
struct swaybar_window *focused_window;
// TOOD: Better name

View file

@ -67,8 +67,8 @@ struct swaybar_config {
struct box_colors binding_mode;
} colors;
#if HAVE_TRAY
char *icon_theme;
#if HAVE_TRAY
struct wl_list tray_bindings; // struct tray_binding::link
bool tray_hidden;
list_t *tray_outputs; // char *

View file

@ -29,9 +29,6 @@ struct swaybar_tray {
list_t *items; // struct swaybar_sni *
struct swaybar_watcher *watcher_xdg;
struct swaybar_watcher *watcher_kde;
list_t *basedirs; // char *
list_t *themes; // struct swaybar_theme *
};
struct swaybar_tray *create_tray(struct swaybar *bar);