diff --git a/bar.c b/bar.c index 27c971e..661c786 100644 --- a/bar.c +++ b/bar.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "config.h" @@ -601,7 +602,7 @@ init (void) /* If no RandR outputs or Xinerama screens, fall back to using whole screen */ monhead = monitor_new (0, 0, width, scr->height_in_pixels); - if (!mons) + if (!monhead) exit(EXIT_FAILURE); /* For WM that support EWMH atoms */