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 */
extern Client *sel, *clients; extern Client *sel, *clients;
extern DC dc;
/* static */ /* static */
@ -38,8 +37,9 @@ static int nmaster = 2;
void void
uicb_setnmaster(Display *disp, uicb_setnmaster(Display *disp,
awesome_config *awesomeconf, DC * drawcontext,
const char * arg) awesome_config *awesomeconf,
const char * arg)
{ {
int delta; int delta;
int wah = get_windows_area_height(disp, awesomeconf->statusbar); int wah = get_windows_area_height(disp, awesomeconf->statusbar);
@ -59,15 +59,16 @@ uicb_setnmaster(Display *disp,
return; return;
} }
if(sel) if(sel)
arrange(disp, &dc, awesomeconf); arrange(disp, drawcontext, awesomeconf);
else else
drawstatus(disp, &dc, awesomeconf); drawstatus(disp, drawcontext, awesomeconf);
} }
void void
uicb_setmwfact(Display *disp, uicb_setmwfact(Display *disp,
awesome_config * awesomeconf, DC *drawcontext,
const char *arg) awesome_config * awesomeconf,
const char *arg)
{ {
double delta; double delta;
@ -88,7 +89,7 @@ uicb_setmwfact(Display *disp,
else if(mwfact > 0.9) else if(mwfact > 0.9)
mwfact = 0.9; mwfact = 0.9;
} }
arrange(disp, &dc, awesomeconf); arrange(disp, drawcontext, awesomeconf);
} }
static void static void

View File

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