bug fix: forgot to add DC to uicb_ in tile.c

This commit is contained in:
Julien Danjou 2007-09-13 19:11:24 +02:00
parent b509d5cbcf
commit ca125f1ac4
2 changed files with 11 additions and 10 deletions

View File

@ -29,7 +29,6 @@
/* extern */
extern Client *sel, *clients;
extern DC dc;
/* static */
@ -38,6 +37,7 @@ static int nmaster = 2;
void
uicb_setnmaster(Display *disp,
DC * drawcontext,
awesome_config *awesomeconf,
const char * arg)
{
@ -59,13 +59,14 @@ uicb_setnmaster(Display *disp,
return;
}
if(sel)
arrange(disp, &dc, awesomeconf);
arrange(disp, drawcontext, awesomeconf);
else
drawstatus(disp, &dc, awesomeconf);
drawstatus(disp, drawcontext, awesomeconf);
}
void
uicb_setmwfact(Display *disp,
DC *drawcontext,
awesome_config * awesomeconf,
const char *arg)
{
@ -88,7 +89,7 @@ uicb_setmwfact(Display *disp,
else if(mwfact > 0.9)
mwfact = 0.9;
}
arrange(disp, &dc, awesomeconf);
arrange(disp, drawcontext, awesomeconf);
}
static void

View File

@ -25,8 +25,8 @@
#include <config.h>
void uicb_setnmaster(Display *, awesome_config *, const char *); /* change number of master windows */
void uicb_setmwfact(Display *, awesome_config *, const char *); /* sets master width factor */
void uicb_setnmaster(Display *, DC *, awesome_config *, const char *); /* change number of master windows */
void uicb_setmwfact(Display *, DC *, awesome_config *, const char *); /* sets master width factor */
void tile(Display *, awesome_config *);
void tileleft(Display *, awesome_config *);
void bstack(Display *, awesome_config *);