From: Ingo Bürk Date: Sat, 5 Sep 2015 14:29:47 +0000 (+0200) Subject: If a title contains a percent sign, make sure it is not swallowed by parsing the... X-Git-Tag: 4.11~29^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f79c44cde1fcf746b36443a10d64524702b8bc6;p=i3%2Fi3 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). --- diff --git a/src/window.c b/src/window.c index 5ecf51c6..5898333f 100644 --- a/src/window.c +++ b/src/window.c @@ -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';