static void match(char *pattern);
static void readstdin(void);
static void run(void);
-static void setup(Bool topbar);
+static void setup(void);
#include "config.h"
#include "draw.h"
static unsigned long normcol[ColLast];
static unsigned long selcol[ColLast];
static Bool running = True;
+static Bool topbar = True;
static DC dc;
static Display *dpy;
static Item *allitems = NULL; /* first of all items */
}
void
-setup(Bool topbar) {
+setup(void) {
int i, j, x, y;
#if XINERAMA
int n;
else
#endif
{
- XGetWindowAttributes(dpy, parent, &pwa);
+ if(!XGetWindowAttributes(dpy, parent, &pwa))
+ eprint("cannot get window attributes");
x = 0;
y = topbar ? 0 : pwa.height - mh;
mw = pwa.width;
int
main(int argc, char *argv[]) {
unsigned int i;
- Bool topbar = True;
/* command line args */
progname = argv[0];
readstdin();
running = grabkeyboard();
- setup(topbar);
+ setup();
drawmenu();
XSync(dpy, False);
run();