mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
bug fix: forgot to add DC to uicb_ in tile.c
This commit is contained in:
parent
b509d5cbcf
commit
ca125f1ac4
2 changed files with 11 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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 *);
|
||||
|
|
Loading…
Reference in a new issue