X-Git-Url: https://git.danieliu.xyz/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=ff893df5e8cf618db6dc9daa0d2e14f970fa28bb;hp=650d19f8ebe0d07160ed5a1f79d6b267eb6baf52;hb=3756f7f6b8dccf7a31789ffaf073a76fd1a87eb9;hpb=99f78fa553f9ddb23fab73e47a408d66ca7f974c diff --git a/dwm.c b/dwm.c index 650d19f..ff893df 100644 --- a/dwm.c +++ b/dwm.c @@ -263,7 +263,7 @@ static void (*handler[LASTEvent]) (XEvent *) = { static Atom wmatom[WMLast], netatom[NetLast]; static int running = 1; static Cur *cursor[CurLast]; -static Scm *scheme; +static Clr **scheme; static Display *dpy; static Drw *drw; static Monitor *mons, *selmon; @@ -1568,7 +1568,7 @@ setup(void) cursor[CurResize] = drw_cur_create(drw, XC_sizing); cursor[CurMove] = drw_cur_create(drw, XC_fleur); /* init appearance */ - scheme = ecalloc(LENGTH(colors), sizeof(Scm)); + scheme = ecalloc(LENGTH(colors), sizeof(Clr *)); for (i = 0; i < LENGTH(colors); i++) scheme[i] = drw_scm_create(drw, colors[i], 3); /* init bars */