commit - dd102aa1db20b7623d92da065e0554aad1ef700f
commit + c403f22497e7af16a964775a2d80cde31374cc06
blob - feb7a63cad7608d95fe51ce286447a5339dc4cb6
blob + db158c046a4d3566fd05cb62d56035ea11ef3377
--- bxbar.c
+++ bxbar.c
static int slen = 0;
static int dirty = 0;
static XftFont *font;
-static XftColor color[2]; /* [0] foreground, [1] background */
+static XftColor color[2]; /* [0] foreground, [1] background */
static XftDraw *xft_draw;
/* Atoms for dock integration */
static void set_dock_atoms(void);
static void run(void);
static int readstdin(void);
+static int text_fit(const char *s, int len, int max_w, XGlyphInfo *ext);
static void draw(void);
static void cleanup(int status);
signal(SIGHUP, SIG_IGN);
setup();
- dirty = 0; /* force initial draw */
run();
cleanup(0);
return 0;
PropModeReplace, (unsigned char *)strut, 12);
}
-void
+static void
run(void)
{
logmsg("run() entered");
return 0;
}
-void
+static void
draw(void)
{
/* Paint background */