set statusbar->height in initstatusbar()
This commit is contained in:
parent
f20c729d64
commit
e22b1e2a73
|
@ -198,8 +198,7 @@ setup(awesome_config *awesomeconf)
|
|||
compileregs(awesomeconf->rules, awesomeconf->nrules);
|
||||
|
||||
/* bar */
|
||||
awesomeconf->statusbar.height = awesomeconf->font->height + 2;
|
||||
initstatusbar(awesomeconf->display, awesomeconf->screen, &awesomeconf->statusbar, awesomeconf->cursor[CurNormal]);
|
||||
initstatusbar(awesomeconf->display, awesomeconf->screen, &awesomeconf->statusbar, awesomeconf->cursor[CurNormal], awesomeconf->font);
|
||||
}
|
||||
|
||||
/** Startup Error handler to check if another window manager
|
||||
|
|
|
@ -179,7 +179,7 @@ drawstatusbar(Display *disp, awesome_config * awesomeconf)
|
|||
}
|
||||
|
||||
void
|
||||
initstatusbar(Display *disp, int screen, Statusbar *statusbar, Cursor cursor)
|
||||
initstatusbar(Display *disp, int screen, Statusbar *statusbar, Cursor cursor, XftFont *font)
|
||||
{
|
||||
XSetWindowAttributes wa;
|
||||
int phys_screen;
|
||||
|
@ -209,6 +209,7 @@ initstatusbar(Display *disp, int screen, Statusbar *statusbar, Cursor cursor)
|
|||
statusbar->height,
|
||||
DefaultDepth(disp, phys_screen));
|
||||
statusbar->width = si[screen].width;
|
||||
statusbar->height = font->height + 2;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
|
||||
#include "common.h"
|
||||
|
||||
void initstatusbar(Display *, int, Statusbar *, Cursor);
|
||||
void initstatusbar(Display *, int, Statusbar *, Cursor, XftFont *);
|
||||
void drawstatusbar(Display *, awesome_config *);
|
||||
void updatebarpos(Display *, Statusbar);
|
||||
|
||||
|
|
Loading…
Reference in New Issue