All functions in alphabetical order except for this one.
76c8c16d
1 file(s) · +9 −9
| 223 | 223 | static void updatenumlockmask(void); |
|
| 224 | 224 | static void updatesizehints(Client *c); |
|
| 225 | 225 | static void updatestatus(void); |
|
| 226 | - | static void updatewindowtype(Client *c); |
|
| 227 | 226 | static void updatetitle(Client *c); |
|
| 227 | + | static void updatewindowtype(Client *c); |
|
| 228 | 228 | static void updatewmhints(Client *c); |
|
| 229 | 229 | static void view(const Arg *arg); |
|
| 230 | 230 | static Client *wintoclient(Window w); |
|
| 1985 | 1985 | } |
|
| 1986 | 1986 | ||
| 1987 | 1987 | void |
|
| 1988 | + | updatestatus(void) |
|
| 1989 | + | { |
|
| 1990 | + | if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) |
|
| 1991 | + | strcpy(stext, "dwm-"VERSION); |
|
| 1992 | + | drawbar(selmon); |
|
| 1993 | + | } |
|
| 1994 | + | ||
| 1995 | + | void |
|
| 1988 | 1996 | updatetitle(Client *c) |
|
| 1989 | 1997 | { |
|
| 1990 | 1998 | if (!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name)) |
|
| 1991 | 1999 | gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name); |
|
| 1992 | 2000 | if (c->name[0] == '\0') /* hack to mark broken clients */ |
|
| 1993 | 2001 | strcpy(c->name, broken); |
|
| 1994 | - | } |
|
| 1995 | - | ||
| 1996 | - | void |
|
| 1997 | - | updatestatus(void) |
|
| 1998 | - | { |
|
| 1999 | - | if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) |
|
| 2000 | - | strcpy(stext, "dwm-"VERSION); |
|
| 2001 | - | drawbar(selmon); |
|
| 2002 | 2002 | } |
|
| 2003 | 2003 | ||
| 2004 | 2004 | void |
|