JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Missed a few spaces in the default format.
authorTiago Cunha <tcunha@gmx.com>
Thu, 31 May 2012 21:21:59 +0000 (22:21 +0100)
committerTiago Cunha <tcunha@gmx.com>
Tue, 5 Jun 2012 21:32:02 +0000 (22:32 +0100)
If not displaying the window title, add four spaces after the window
class. Noticed due to the previously related change.

spectrwm.c

index 116486a..2ecc60f 100644 (file)
@@ -1459,8 +1459,12 @@ bar_fmt(const char *fmtexp, char *fmtnew, struct swm_region *r, size_t sz)
        if (urgent_enabled)
                strlcat(fmtnew, "* +U*    ", sz);
 
-       if (title_class_enabled)
+       if (title_class_enabled) {
                strlcat(fmtnew, "+C", sz);
+               if (title_name_enabled == 0)
+                       strlcat(fmtnew, "    ", sz);
+       }
+
        if (title_name_enabled) {
                /* add a colon if showing the class and something is focused */
                if (title_class_enabled && r != NULL && r->ws != NULL &&