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,8 +37,9 @@ static int nmaster = 2;
void
uicb_setnmaster(Display *disp,
awesome_config *awesomeconf,
const char * arg)
DC * drawcontext,
awesome_config *awesomeconf,
const char * arg)
{
int delta;
int wah = get_windows_area_height(disp, awesomeconf->statusbar);
@ -59,15 +59,16 @@ 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,
awesome_config * awesomeconf,
const char *arg)
DC *drawcontext,
awesome_config * awesomeconf,
const char *arg)
{
double delta;
@ -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 *);