From 0a71d182db231ce27fbe971773ba28680ff092bc Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Sat, 18 Aug 2012 13:48:54 +0200 Subject: [PATCH] Consistent option naming. --- bar.c | 4 ++-- config.def.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bar.c b/bar.c index 139c825..d5d8675 100644 --- a/bar.c +++ b/bar.c @@ -326,7 +326,7 @@ init (void) /* where to place the window */ y = (bar_bottom) ? (scr->height_in_pixels - BAR_HEIGHT) : 0; - bar_width = (BAR_WIDTH < 0) ? (scr->width_in_pixels - OFFSET) : BAR_WIDTH; + bar_width = (BAR_WIDTH < 0) ? (scr->width_in_pixels - BAR_OFFSET) : BAR_WIDTH; /* Load the font */ if (font_load ((const char* []){ BAR_FONT })) @@ -334,7 +334,7 @@ init (void) /* Create the main window */ win = xcb_generate_id (c); - xcb_create_window (c, XCB_COPY_FROM_PARENT, win, root, OFFSET, y, bar_width, + xcb_create_window (c, XCB_COPY_FROM_PARENT, win, root, BAR_OFFSET, y, bar_width, BAR_HEIGHT, 0, XCB_WINDOW_CLASS_INPUT_OUTPUT, scr->root_visual, XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK, (const uint32_t []){ palette[0], XCB_EVENT_MASK_EXPOSURE }); diff --git a/config.def.h b/config.def.h index e939e0d..28ffcb5 100644 --- a/config.def.h +++ b/config.def.h @@ -3,7 +3,7 @@ /* The width of the bar. Set to -1 to fit screen */ #define BAR_WIDTH -1 /* Offset from the left. Set to 0 to have no effect */ -#define OFFSET 0 +#define BAR_OFFSET 0 /* Choose between an underline or an overline */ #define BAR_UNDERLINE 1 /* The thickness of the underline (in pixels). Set to 0 to disable. */