Add and use DWM function "updatebars"
This commit is contained in:
parent
6cb0b036d0
commit
631fdd6bcf
1 changed files with 10 additions and 1 deletions
11
src/dwm.c
11
src/dwm.c
|
@ -265,6 +265,7 @@ static void unfocus(Client *c, int setfocus);
|
|||
static void unmanage(Client *c, int destroyed);
|
||||
static void updatebarpos(Monitor *m);
|
||||
static void updatebar(Monitor *m);
|
||||
static void updatebars();
|
||||
static void updateclientlist(void);
|
||||
static int updategeom(void);
|
||||
static void updatenumlockmask(void);
|
||||
|
@ -1914,7 +1915,7 @@ togglebar(const Arg *arg)
|
|||
{
|
||||
unit_toggle_show_bar(selmon->pertag->units[selmon->pertag->curtag]);
|
||||
|
||||
updatebar(selmon);
|
||||
updatebars();
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -2072,6 +2073,14 @@ updatebar(Monitor *m)
|
|||
arrange(m);
|
||||
}
|
||||
|
||||
void
|
||||
updatebars()
|
||||
{
|
||||
for (Monitor *m = mons; m; m = m->next) {
|
||||
updatebar(m);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
updatebarpos(Monitor *m)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue