JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Rearrange class & name on bar to match quirk config style.
authorDarrin Chandler <dwchandler@stilyagin.com>
Sun, 7 Jun 2009 16:40:35 +0000 (16:40 +0000)
committerDarrin Chandler <dwchandler@stilyagin.com>
Sun, 7 Jun 2009 16:40:35 +0000 (16:40 +0000)
scrotwm.c

index 210a1ff..6c47e65 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -800,12 +800,12 @@ bar_update(void)
                status = XGetClassHint(display, cur_focus->id, xch);
                if (status == BadWindow || status == BadAlloc)
                        goto out;
-               if (title_name_enabled)
-                       strlcat(s, xch->res_name, sizeof s);
-               if (title_name_enabled && title_class_enabled)
-                       strlcat(s, " ", sizeof s);
                if (title_class_enabled)
                        strlcat(s, xch->res_class, sizeof s);
+               if (title_name_enabled && title_class_enabled)
+                       strlcat(s, ":", sizeof s);
+               if (title_name_enabled)
+                       strlcat(s, xch->res_name, sizeof s);
        }
 out:
        if (xch)