If a title contains a percent sign, make sure it is not swallowed by parsing the title_format (if one is set on the window).

This commit is contained in:
Ingo Bürk 2015-09-05 16:29:47 +02:00
parent bbefa2a16c
commit 1f79c44cde
1 changed files with 2 additions and 0 deletions

View File

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