minor style fix and new var for fonts
This commit is contained in:
parent
87ef23296b
commit
76d3b0bb95
3
sent.c
3
sent.c
@ -125,6 +125,7 @@ static XWindow xw;
|
|||||||
static struct DC dc;
|
static struct DC dc;
|
||||||
static Drw *d = NULL;
|
static Drw *d = NULL;
|
||||||
static Scm *sc;
|
static Scm *sc;
|
||||||
|
static Fnt *fonts[NUMFONTS];
|
||||||
static int running = 1;
|
static int running = 1;
|
||||||
|
|
||||||
static void (*handler[LASTEvent])(XEvent *) = {
|
static void (*handler[LASTEvent])(XEvent *) = {
|
||||||
@ -606,7 +607,7 @@ void xinit()
|
|||||||
xw.netwmname = XInternAtom(xw.dpy, "_NET_WM_NAME", False);
|
xw.netwmname = XInternAtom(xw.dpy, "_NET_WM_NAME", False);
|
||||||
XSetWMProtocols(xw.dpy, xw.win, &xw.wmdeletewin, 1);
|
XSetWMProtocols(xw.dpy, xw.win, &xw.wmdeletewin, 1);
|
||||||
|
|
||||||
if(!(d = drw_create(xw.dpy, xw.scr, xw.win, xw.w, xw.h)))
|
if (!(d = drw_create(xw.dpy, xw.scr, xw.win, xw.w, xw.h)))
|
||||||
die("Can't create drawing context.");
|
die("Can't create drawing context.");
|
||||||
sc = drw_scm_create(d, "#000000", "#FFFFFF");
|
sc = drw_scm_create(d, "#000000", "#FFFFFF");
|
||||||
drw_setscheme(d, sc);
|
drw_setscheme(d, sc);
|
||||||
|
Loading…
Reference in New Issue
Block a user