From ca125f1ac4bb47ad2891cb6c684ba8475255b430 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 13 Sep 2007 19:11:24 +0200 Subject: [PATCH] bug fix: forgot to add DC to uicb_ in tile.c --- layouts/tile.c | 17 +++++++++-------- layouts/tile.h | 4 ++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/layouts/tile.c b/layouts/tile.c index 66661f747..63422478c 100644 --- a/layouts/tile.c +++ b/layouts/tile.c @@ -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 diff --git a/layouts/tile.h b/layouts/tile.h index 7899e72ba..d87d8122b 100644 --- a/layouts/tile.h +++ b/layouts/tile.h @@ -25,8 +25,8 @@ #include -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 *);