From a3fb967ad9d4885f7df6344041ce8e98a3a1cdf5 Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sat, 23 Apr 2016 08:59:38 +0200 Subject: [PATCH] Make it possible to build lemonbar w/o XINERAMA support --- lemonbar.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lemonbar.c b/lemonbar.c index 08e4704..930571c 100644 --- a/lemonbar.c +++ b/lemonbar.c @@ -11,7 +11,9 @@ #include #include #include +#if WITH_XINERAMA #include +#endif #include // Here be dragons @@ -987,6 +989,7 @@ get_randr_monitors (void) monitor_create_chain(r, valid); } +#ifdef WITH_XINERAMA void get_xinerama_monitors (void) { @@ -1015,6 +1018,7 @@ get_xinerama_monitors (void) monitor_create_chain(rects, screens); } +#endif xcb_visualid_t get_visual (void) @@ -1139,7 +1143,9 @@ init (char *wm_name) if (qe_reply && qe_reply->present) { get_randr_monitors(); - } else { + } +#if WITH_XINERAMA + else { qe_reply = xcb_get_extension_data(c, &xcb_xinerama_id); // Check if Xinerama extension is present and active @@ -1153,6 +1159,7 @@ init (char *wm_name) free(xia_reply); } } +#endif if (!monhead) { // If I fits I sits