All functions in alphabetical order except for this one.
Christopher Drelich cd@cdrakka.com
Wed, 14 Mar 2018 13:58:06 -0400
1 files changed,
9 insertions(+),
9 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -223,8 +223,8 @@ static void updateclientlist(void);
static void updatenumlockmask(void); static void updatesizehints(Client *c); static void updatestatus(void); -static void updatewindowtype(Client *c); static void updatetitle(Client *c); +static void updatewindowtype(Client *c); static void updatewmhints(Client *c); static void view(const Arg *arg); static Client *wintoclient(Window w);@@ -1985,20 +1985,20 @@ c->isfixed = (c->maxw && c->maxh && c->maxw == c->minw && c->maxh == c->minh);
} void +updatestatus(void) +{ + if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) + strcpy(stext, "dwm-"VERSION); + drawbar(selmon); +} + +void updatetitle(Client *c) { if (!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name)) gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name); if (c->name[0] == '\0') /* hack to mark broken clients */ strcpy(c->name, broken); -} - -void -updatestatus(void) -{ - if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) - strcpy(stext, "dwm-"VERSION); - drawbar(selmon); } void