summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/dwm.c b/dwm.c
index ab16c75..c98678d 100644
--- a/dwm.c
+++ b/dwm.c
@@ -223,8 +223,8 @@ static void updateclientlist(void);
223static void updatenumlockmask(void); 223static void updatenumlockmask(void);
224static void updatesizehints(Client *c); 224static void updatesizehints(Client *c);
225static void updatestatus(void); 225static void updatestatus(void);
226static void updatewindowtype(Client *c);
227static void updatetitle(Client *c); 226static void updatetitle(Client *c);
227static void updatewindowtype(Client *c);
228static void updatewmhints(Client *c); 228static void updatewmhints(Client *c);
229static void view(const Arg *arg); 229static void view(const Arg *arg);
230static Client *wintoclient(Window w); 230static Client *wintoclient(Window w);
@@ -1985,6 +1985,14 @@ updatesizehints(Client *c)
1985} 1985}
1986 1986
1987void 1987void
1988updatestatus(void)
1989{
1990 if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
1991 strcpy(stext, "dwm-"VERSION);
1992 drawbar(selmon);
1993}
1994
1995void
1988updatetitle(Client *c) 1996updatetitle(Client *c)
1989{ 1997{
1990 if (!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name)) 1998 if (!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name))
@@ -1994,14 +2002,6 @@ updatetitle(Client *c)
1994} 2002}
1995 2003
1996void 2004void
1997updatestatus(void)
1998{
1999 if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext)))
2000 strcpy(stext, "dwm-"VERSION);
2001 drawbar(selmon);
2002}
2003
2004void
2005updatewindowtype(Client *c) 2005updatewindowtype(Client *c)
2006{ 2006{
2007 Atom state = getatomprop(c, netatom[NetWMState]); 2007 Atom state = getatomprop(c, netatom[NetWMState]);