]> git.sur5r.net Git - i3/i3/commitdiff
If a title contains a percent sign, make sure it is not swallowed by parsing the... 1899/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Sat, 5 Sep 2015 14:29:47 +0000 (16:29 +0200)
committerIngo Bürk <ingo.buerk@tngtech.com>
Sat, 5 Sep 2015 14:29:47 +0000 (16:29 +0200)
src/window.c

index 5ecf51c6f3aba4e6d9e2190dbe969c6bcf8a6034..5898333f3d6490f9074f53b50df9511208b29c22 100644 (file)
@@ -396,6 +396,8 @@ i3String *window_parse_title_format(i3Window *win) {
         } else if (STARTS_WITH(walk + 1, "instance")) {
             outwalk += sprintf(outwalk, "%s", escaped_instance);
             walk += strlen("instance");
+        } else {
+            *(outwalk++) = *walk;
         }
     }
     *outwalk = '\0';