From 1f79c44cde1fcf746b36443a10d64524702b8bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20B=C3=BCrk?= Date: Sat, 5 Sep 2015 16:29:47 +0200 Subject: [PATCH] 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). --- src/window.c | 2 ++ 1 file changed, 2 insertions(+) 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';