X-Git-Url: https://git.danieliu.xyz/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=c98678d0cdd6ccfe87ebf53b7367b7d63534f8d0;hp=ab16c755ab9b517fb1c2eb11ac201563a3f03842;hb=76c8c16d79d4fd2a3e776800637d211e4dc8e50a;hpb=3cb34830eb25ebda15a23d8391fd69cddb4fc024 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); 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); @@ -1984,6 +1984,14 @@ updatesizehints(Client *c) 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) { @@ -1993,14 +2001,6 @@ updatetitle(Client *c) strcpy(c->name, broken); } -void -updatestatus(void) -{ - if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) - strcpy(stext, "dwm-"VERSION); - drawbar(selmon); -} - void updatewindowtype(Client *c) {